- java.lang.Object
-
- org.controlsfx.tools.Borders.EmptyBorders
-
- Enclosing class:
- Borders
public class Borders.EmptyBorders extends Object
A fluent API that is only indirectly instantiable via theBordersfluent API, and which allows for anempty borderto be wrapped around a given Node.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bordersbuild()Builds theBorders.Borderandadds itto the list of borders to wrap around the given Node (which will be constructed and returned whenBorders.build()is called.NodebuildAll()A convenience method, this is equivalent to callingbuild()followed byBorders.build().Borders.EmptyBorderspadding(double padding)Specifies that the wrapped Node should have the given padding around all four sides of itself.Borders.EmptyBorderspadding(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.
-
-
-
Method Detail
-
padding
public Borders.EmptyBorders padding(double padding)
Specifies that the wrapped Node should have the given padding around all four sides of itself.
-
padding
public 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.
-
build
public Borders build()
Builds theBorders.Borderandadds itto the list of borders to wrap around the given Node (which will be constructed and returned whenBorders.build()is called.
-
buildAll
public Node buildAll()
A convenience method, this is equivalent to callingbuild()followed byBorders.build(). In other words, calling this will return the original Node wrapped in all its borders specified.
-
-