本文整理匯總了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();
}