public class Borders.EmptyBorders
extends java.lang.Object
Borders
fluent API, and which allows for an empty border
to be wrapped around a given Node.| Modifier and Type | Method and Description |
|---|---|
Borders |
build()
Builds the
Border and adds it
to the list of borders to wrap around the given Node (which will be
constructed and returned when Borders.build() is called. |
javafx.scene.Node |
buildAll()
A convenience method, this is equivalent to calling
build() followed by Borders.build(). |
Borders.EmptyBorders |
padding(double padding)
Specifies that the wrapped Node should have the given padding around
all four sides of itself.
|
Borders.EmptyBorders |
padding(double top,
double right,
double bottom,
double left)
Specifies that the wrapped Node should be wrapped with the given
padding for each of its four sides, going in the order top, right,
bottom, and finally left.
|
public Borders.EmptyBorders padding(double padding)
public Borders.EmptyBorders padding(double top, double right, double bottom, double left)
public Borders build()
Border and adds it
to the list of borders to wrap around the given Node (which will be
constructed and returned when Borders.build() is called.public javafx.scene.Node buildAll()
build() followed by Borders.build(). In other words,
calling this will return the original Node wrapped in all its borders
specified.