Kanzi Framework  3.9.0
Java API
TextConceptMetadata Interface Reference

Metadata definitions for TextConcept. More...

Inheritance diagram for TextConceptMetadata:
[legend]

Public Attributes

DynamicPropertyType< ColorRGBAFontColorProperty
 Sets the color of the text. More...
 
DynamicPropertyType< ResourceFontMaterialProperty
 Sets the material whose shader is used to render the text. More...
 
DynamicPropertyType< Vector2HorizontalPaddingProperty
 Sets the padding spaces between the content and the left and right boundaries of the Text node. More...
 
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.TextConcept")
 Metaclass for TextConcept.
 
DynamicPropertyType< String > OverflowProperty
 Sets the characters that represent the truncated text when the text string to be rendered is too long to fit in the node. More...
 
DynamicPropertyType< Boolean > RemoveSideBearingsProperty
 Whether to position the leftmost characters of left-aligned text and rightmost characters of right-aligned text exactly within the boundary of the text node. More...
 
DynamicPropertyType< Integer > TextHorizontalAlignmentProperty
 Sets the horizontal alignment of the text. More...
 
DynamicPropertyType< String > TextProperty
 Sets the text content that the text node renders. More...
 
DynamicPropertyType< Integer > TextVerticalAlignmentProperty
 Sets the vertical alignment of the text. More...
 
DynamicPropertyType< Vector2VerticalPaddingProperty
 Sets the padding spaces between the content and the top and bottom boundaries of the Text node. More...
 

Detailed Description

Metadata definitions for TextConcept.

Member Data Documentation

◆ FontColorProperty

DynamicPropertyType<ColorRGBA> FontColorProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.FontColor", ColorRGBA.class)

Sets the color of the text.

◆ FontMaterialProperty

DynamicPropertyType<Resource> FontMaterialProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.FontMaterial", Resource.class)

Sets the material whose shader is used to render the text.

The shader must use the ContentTexture uniform which is automatically filled with glyph data.

◆ HorizontalPaddingProperty

DynamicPropertyType<Vector2> HorizontalPaddingProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.HorizontalPadding", Vector2.class)

Sets the padding spaces between the content and the left and right boundaries of the Text node.

◆ OverflowProperty

DynamicPropertyType<String> OverflowProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.Overflow", String.class)

Sets the characters that represent the truncated text when the text string to be rendered is too long to fit in the node.

The default value is "...".

◆ RemoveSideBearingsProperty

DynamicPropertyType<Boolean> RemoveSideBearingsProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.RemoveSideBearings", Boolean.class)

Whether to position the leftmost characters of left-aligned text and rightmost characters of right-aligned text exactly within the boundary of the text node.

◆ TextHorizontalAlignmentProperty

DynamicPropertyType<Integer> TextHorizontalAlignmentProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.TextHorizontalAlignment", Integer.class)

Sets the horizontal alignment of the text.

◆ TextProperty

DynamicPropertyType<String> TextProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.Text", String.class)

Sets the text content that the text node renders.

To create a line break press Shift+Enter.

◆ TextVerticalAlignmentProperty

DynamicPropertyType<Integer> TextVerticalAlignmentProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.TextVerticalAlignment", Integer.class)

Sets the vertical alignment of the text.

◆ VerticalPaddingProperty

DynamicPropertyType<Vector2> VerticalPaddingProperty
Initial value:
=
new DynamicPropertyType<>("TextConcept.VerticalPadding", Vector2.class)

Sets the padding spaces between the content and the top and bottom boundaries of the Text node.