本文整理汇总了Java中javafx.geometry.Side.BOTTOM属性的典型用法代码示例。如果您正苦于以下问题:Java Side.BOTTOM属性的具体用法?Java Side.BOTTOM怎么用?Java Side.BOTTOM使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javafx.geometry.Side
的用法示例。
在下文中一共展示了Side.BOTTOM属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MonitoringPane
public MonitoringPane()
{
super();
super.setPrefHeight(AppTabPane.CONTENT_HEIGHT);
super.setPrefWidth(AppTabPane.CONTENT_WIDTH);
super.setSide(Side.BOTTOM);
Tab[] tabs = new Tab[3];
tabs[0] = new Tab("Core Usage");
tabs[0].setContent(new CoreUsageMonitorPane());
tabs[1] = new Tab("Memory Usage");
tabs[1].setContent(new MemoryUsageMonitorPane());
tabs[2] = new Tab("Temperature");
tabs[2].setContent(new TempMonitorPane());
for(int i = 0; i < tabs.length; i++)
tabs[i].setClosable(false);
super.getTabs().addAll(tabs);
}
示例2: pageInformationAlignmentProperty
public final ObjectProperty<Side> pageInformationAlignmentProperty() {
if (pageInformationAlignment == null) {
pageInformationAlignment = new StyleableObjectProperty<Side>(Side.BOTTOM) {
@Override
protected void invalidated() {
getSkinnable().requestLayout();
}
@Override
public CssMetaData<Pagination, Side> getCssMetaData() {
return StyleableProperties.PAGE_INFORMATION_ALIGNMENT;
}
@Override
public Object getBean() {
return CPagenationSkin.this;
}
@Override
public String getName() {
return "pageInformationAlignment";
}
};
}
return pageInformationAlignment;
}
示例3: setXAxisBorderColor
public void setXAxisBorderColor(final Paint FILL) {
if (Side.BOTTOM == getXAxis().getSide()) {
getXAxis().setBorder(new Border(
new BorderStroke(FILL, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID,
BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderStroke.DEFAULT_WIDTHS, Insets.EMPTY)));
} else {
getXAxis().setBorder(new Border(
new BorderStroke(Color.TRANSPARENT, Color.TRANSPARENT, FILL, Color.TRANSPARENT, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID,
BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderStroke.DEFAULT_WIDTHS, Insets.EMPTY)));
}
}
示例4: getSelectedConnectorPosition
/**
* Gets the side corresponding to the currently selected connector position in the menu.
*
* @return the {@link Side} corresponding to the currently selected connector position
*/
private Side getSelectedConnectorPosition() {
if (leftConnectorPositionButton.isSelected()) {
return Side.LEFT;
} else if (rightConnectorPositionButton.isSelected()) {
return Side.RIGHT;
} else if (topConnectorPositionButton.isSelected()) {
return Side.TOP;
} else {
return Side.BOTTOM;
}
}
示例5: getSide
/**
* Gets the side corresponding to the given connector type.
*
* @param type a non-null connector type
* @return the {@link Side} the connector type is on
*/
public static Side getSide(final String type) {
if (isTop(type)) {
return Side.TOP;
} else if (isRight(type)) {
return Side.RIGHT;
} else if (isBottom(type)) {
return Side.BOTTOM;
} else if (isLeft(type)) {
return Side.LEFT;
} else {
return null;
}
}