public class Borders.EtchedBorders
extends java.lang.Object
Borders
fluent API, and which allows for an etched 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.EtchedBorders |
highlight(javafx.scene.paint.Color highlight)
Specifies the highlight colour to use in the etched border.
|
Borders.EtchedBorders |
innerPadding(double padding)
Specifies the inner padding of the four lines of this border.
|
Borders.EtchedBorders |
innerPadding(double topPadding,
double rightPadding,
double bottomPadding,
double leftPadding)
Specifies that the line wrapping the node should have inner padding
as specified, with each padding being independently configured, going
in the order top, right, bottom, and left.
|
Borders.EtchedBorders |
outerPadding(double padding)
Specifies the outer padding of the four lines of this border.
|
Borders.EtchedBorders |
outerPadding(double topPadding,
double rightPadding,
double bottomPadding,
double leftPadding)
Specifies that the line wrapping the node should have outer padding
as specified, with each padding being independently configured, going
in the order top, right, bottom, and left.
|
Borders.EtchedBorders |
radius(double radius)
Specifies the radius of the four corners of the lines of this border.
|
Borders.EtchedBorders |
radius(double topLeft,
double topRight,
double bottomRight,
double bottomLeft)
Specifies that the etched line wrapping the node should have corner radii
as specified, with each radius being independently configured, going
in the order top-left, top-right, bottom-right, and finally bottom-left.
|
Borders.EtchedBorders |
raised()
Specifies the order in which the highlight and shadow colours are
placed.
|
Borders.EtchedBorders |
shadow(javafx.scene.paint.Color shadow)
Specifies the shadow colour to use in the etched border.
|
Borders.EtchedBorders |
title(java.lang.String title)
If desired, this specifies the title text to show in this border.
|
public Borders.EtchedBorders highlight(javafx.scene.paint.Color highlight)
public Borders.EtchedBorders shadow(javafx.scene.paint.Color shadow)
public Borders.EtchedBorders raised()
public Borders.EtchedBorders title(java.lang.String title)
public Borders.EtchedBorders outerPadding(double padding)
public Borders.EtchedBorders outerPadding(double topPadding, double rightPadding, double bottomPadding, double leftPadding)
public Borders.EtchedBorders innerPadding(double padding)
public Borders.EtchedBorders innerPadding(double topPadding, double rightPadding, double bottomPadding, double leftPadding)
public Borders.EtchedBorders radius(double radius)
public Borders.EtchedBorders radius(double topLeft, double topRight, double bottomRight, double bottomLeft)
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.