Tuesday 15 September 2015

set text for javafx.scene.text.Text through css -



set text for javafx.scene.text.Text through css -

i need store entire node properties in css javafx element or javafx.scene.text.text or javafx.scene.shape.

for text i'm not sure how set text value though css. possible?

i need store properties in css can recreate same element applied properties help of css.

tia

according official css documentation text nodes not possible, there not appear equivalent of web css content attribute believe require. find javafx css limited e.g. not back upwards css layout properties, width, height etc.

the available properties follows plus -fx-font-* properties.

-fx-font font.default inherits -fx-font-smoothing-type [ grayness | lcd ] grayness -fx-strikethrough false -fx-text-alignment [ left | center | right | justify ] left inherits -fx-text-origin [ baseline | top | bottom ] baseline -fx-underline

if you're desperate, create custom subclass of text supported using css api back upwards custom ui controls. looks quite task though.

css javafx javafx-8

No comments:

Post a Comment