https://github.com/adrianromero/textflowbuilder
TextFlow Builder is a JavaFX library to create styled text labels.
https://github.com/adrianromero/textflowbuilder
Last synced: 3 months ago
JSON representation
TextFlow Builder is a JavaFX library to create styled text labels.
- Host: GitHub
- URL: https://github.com/adrianromero/textflowbuilder
- Owner: adrianromero
- License: apache-2.0
- Created: 2016-08-29T22:10:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-20T14:58:10.000Z (over 8 years ago)
- Last Synced: 2025-01-27T11:45:48.974Z (4 months ago)
- Language: Java
- Homepage:
- Size: 116 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TextFlow Builder [](https://jitpack.io/#adrianromero/textflowbuilder)
================TextFlow Builder is a JavaFX library to create styled text labels.
Examples
========```java
Pane text1 = TextContainer.createTextFlow("{-fx-fill:red; -fx-font-weight: bold;}Simple styled text.");
Pane text2 = TextContainer.createTextFlow("{-fx-fill:red; -fx-font-weight: bold;}More{-fx-fill: blue; -fx-font-size: 30;} than{} one style.");
Pane text3 = TextContainer.createTextFlow("And if you do not want style, do not add style tags...");
Pane text4 = TextContainer.createTextFlow("Remember to {-fx-font-weight: bold;}\\{escape\\}{} brackets if you want to use it.");
Pane text5 = TextContainer.createFlowPane("With FlowPanel you can {-fx-background-color: lightgray; -fx-background-radius: 5;} style {} the background.");
```Screenshots
===========
Demo examples
Install
=======To install the library add:
```gradle
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.adrianromero:textflowbuilder:1.0.0'
}
```License
=======TextFlow Builder is licensed under the Apache License, Version 2.0, January 2004.