Class BgFill
java.lang.Object
com.imyeyu.fx.utils.BgFill
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.layout.Backgroundbuild()导出背景javafx.scene.layout.BackgroundFillbuildFill(javafx.scene.paint.Paint color) 导出背景填充insets(double size) 设置内边距insets(double topBottom, double leftRight) 设置内边距insets(double top, double right, double bottom, double left) 设置内边距insets(javafx.geometry.Insets insets) 设置内边距raddi(double size) 设置四角圆角大小raddi(double topLeft, double topRight, double bottomRight, double bottomLeft, boolean asPercent) 设置四角圆角大小static javafx.scene.layout.Backgroundtest()快速构造测试背景toBottom()从上往下渐变toRight()从左往右渐变
-
Constructor Details
-
BgFill
public BgFill(javafx.scene.paint.Paint color) 纯色构造器- Parameters:
color- 颜色
-
BgFill
-
BgFill
-
-
Method Details
-
raddi
-
raddi
public BgFill raddi(double topLeft, double topRight, double bottomRight, double bottomLeft, boolean asPercent) 设置四角圆角大小- Parameters:
topLeft- 左上topRight- 右上bottomRight- 右下bottomLeft- 左下asPercent- true 为百分比数值- Returns:
- 本实例
-
insets
-
insets
-
insets
设置内边距- Parameters:
topBottom- 上下边距leftRight- 左右边距- Returns:
- 本实例
-
insets
设置内边距- Parameters:
top- 上边距right- 右边距bottom- 下边距left- 左边距- Returns:
- 本实例
-
toRight
-
toBottom
-
build
public javafx.scene.layout.Background build()导出背景- Returns:
- 背景
-
buildFill
public javafx.scene.layout.BackgroundFill buildFill(javafx.scene.paint.Paint color) 导出背景填充- Parameters:
color- 颜色- Returns:
- 背景填充
-
test
public static javafx.scene.layout.Background test()快速构造测试背景- Returns:
- 背景
-