本文整理汇总了Java中eu.hansolo.enzo.simpleindicator.SimpleIndicator类的典型用法代码示例。如果您正苦于以下问题:Java SimpleIndicator类的具体用法?Java SimpleIndicator怎么用?Java SimpleIndicator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SimpleIndicator类属于eu.hansolo.enzo.simpleindicator包,在下文中一共展示了SimpleIndicator类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initSimpleIndicatorPane
import eu.hansolo.enzo.simpleindicator.SimpleIndicator; //导入依赖的package包/类
private void initSimpleIndicatorPane() {
simpleIndicator1 = SimpleIndicatorBuilder.create().indicatorStyle(SimpleIndicator.IndicatorStyle.RED).build();
simpleIndicator2 = SimpleIndicatorBuilder.create().indicatorStyle(SimpleIndicator.IndicatorStyle.YELLOW).build();
simpleIndicator3 = SimpleIndicatorBuilder.create().indicatorStyle(SimpleIndicator.IndicatorStyle.GREEN).build();
simpleIndicator1.setMinSize(150, 150);
simpleIndicator1.setPrefSize(150, 150);
simpleIndicator2.setMinSize(150, 150);
simpleIndicator2.setPrefSize(150, 150);
simpleIndicator3.setMinSize(150, 150);
simpleIndicator3.setPrefSize(150, 150);
VBox simpleIndicatorBox = new VBox(simpleIndicator1, simpleIndicator2, simpleIndicator3);
simpleIndicatorBox.setSpacing(20);
simpleIndicatorPane = new StackPane(simpleIndicatorBox);
AnchorPane.setLeftAnchor(simpleIndicatorPane, 20d);
AnchorPane.setTopAnchor(simpleIndicatorPane, 100d);
AnchorPane.setRightAnchor(simpleIndicatorPane, 20d);
unManageNode(simpleIndicatorPane);
}
示例2: SimpleIndicatorSkin
import eu.hansolo.enzo.simpleindicator.SimpleIndicator; //导入依赖的package包/类
public SimpleIndicatorSkin(final SimpleIndicator CONTROL) {
super(CONTROL);
pane = new Pane();
init();
initGraphics();
registerListeners();
}