java.lang.Object
com.tlcsdm.core.javafx.control.Borders.LineBorders
- 封闭类:
Borders
A fluent API that is only indirectly instantiable via the
Borders
fluent API, and which allows for a line border
to be wrapped around a given Node.-
字段概要
字段修饰符和类型字段说明private javafx.scene.paint.Colorprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate javafx.scene.paint.Colorprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate final Bordersprivate javafx.scene.paint.Colorprivate doubleprivate javafx.scene.layout.BorderStrokeStyleprivate Stringprivate javafx.scene.paint.Colorprivate doubleprivate doubleprivate double -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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.javafx.scene.NodebuildAll()A convenience method, this is equivalent to callingbuild()followed byBorders.build().color(javafx.scene.paint.Color color) Specifies the colour to use for all four sides of this border.color(javafx.scene.paint.Color topColor, javafx.scene.paint.Color rightColor, javafx.scene.paint.Color bottomColor, javafx.scene.paint.Color leftColor) Specifies that the wrapped Node should be wrapped with the given colours for each of its four sides, going in the order top, right, bottom, and finally left.innerPadding(double padding) Specifies the outer padding of the four lines of this border.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.outerPadding(double padding) Specifies the inner padding of the four lines of this border.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.radius(double radius) Specifies the radius of the four corners of the line of this border.radius(double topLeft, double topRight, double bottomRight, double bottomLeft) Specifies that the 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.strokeStyle(javafx.scene.layout.BorderStrokeStyle strokeStyle) Specifies whichBorderStrokeStyleto use for this line border.thickness(double thickness) Specifies the thickness of the line to use on all four sides of this border.thickness(double topThickness, double rightThickness, double bottomThickness, double leftThickness) Specifies that the wrapped Node should be wrapped with the given line thickness for each of its four sides, going in the order top, right, bottom, and finally left.If desired, this specifies the title text to show in this border.
-
字段详细资料
-
parent
-
title
-
strokeStyle
private javafx.scene.layout.BorderStrokeStyle strokeStyle -
topColor
private javafx.scene.paint.Color topColor -
rightColor
private javafx.scene.paint.Color rightColor -
bottomColor
private javafx.scene.paint.Color bottomColor -
leftColor
private javafx.scene.paint.Color leftColor -
outerTopPadding
private double outerTopPadding -
outerRightPadding
private double outerRightPadding -
outerBottomPadding
private double outerBottomPadding -
outerLeftPadding
private double outerLeftPadding -
innerTopPadding
private double innerTopPadding -
innerRightPadding
private double innerRightPadding -
innerBottomPadding
private double innerBottomPadding -
innerLeftPadding
private double innerLeftPadding -
topThickness
private double topThickness -
rightThickness
private double rightThickness -
bottomThickness
private double bottomThickness -
leftThickness
private double leftThickness -
topLeftRadius
private double topLeftRadius -
topRightRadius
private double topRightRadius -
bottomRightRadius
private double bottomRightRadius -
bottomLeftRadius
private double bottomLeftRadius
-
-
构造器详细资料
-
LineBorders
-
-
方法详细资料
-
color
Specifies the colour to use for all four sides of this border. -
color
public Borders.LineBorders color(javafx.scene.paint.Color topColor, javafx.scene.paint.Color rightColor, javafx.scene.paint.Color bottomColor, javafx.scene.paint.Color leftColor) Specifies that the wrapped Node should be wrapped with the given colours for each of its four sides, going in the order top, right, bottom, and finally left. -
strokeStyle
Specifies whichBorderStrokeStyleto use for this line border. By default this isBorderStrokeStyle.SOLID, but you can use any other style (such asBorderStrokeStyle.DASHED,BorderStrokeStyle.DOTTED, or a custom style built usingBorderStrokeStyle(javafx.scene.shape.StrokeType, javafx.scene.shape.StrokeLineJoin, javafx.scene.shape.StrokeLineCap, double, double, List). -
outerPadding
Specifies the inner padding of the four lines of this border. -
outerPadding
public Borders.LineBorders 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. -
innerPadding
Specifies the outer padding of the four lines of this border. -
innerPadding
public Borders.LineBorders 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. -
thickness
Specifies the thickness of the line to use on all four sides of this border. -
thickness
public Borders.LineBorders thickness(double topThickness, double rightThickness, double bottomThickness, double leftThickness) Specifies that the wrapped Node should be wrapped with the given line thickness for each of its four sides, going in the order top, right, bottom, and finally left. -
radius
Specifies the radius of the four corners of the line of this border. -
radius
public Borders.LineBorders radius(double topLeft, double topRight, double bottomRight, double bottomLeft) Specifies that the 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. -
title
If desired, this specifies the title text to show in this border. -
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 javafx.scene.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.
-