Ruler
A horizontal or vertical ruler, often used at the top and left of a drawing (in a BorderPane).
Theme DSL
"ruler" {
font( value : Font )
font( size : Int, style : FontStyle, family : String... )
font( size : Int, family : String... )
format( value : Format ) // Converts numbers to Strings. See java.text.Format
textColor( value : Color )
textColor( value : String )
":top" { padding( ... ) }
":bottom" { padding( ... ) }
":left" { padding( ... ) }
":right" { padding( ... ) }
}
The padding determines the size of the markings along the ruler.
Ruler inherits all the features of Region.
Properties
If set to true, then the lower bound is at the bottom, and the upper bound at the top. i.e. when your Y axis points upwards.
Functions
Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.
Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.