本文整理匯總了Java中javafx.geometry.Side.LEFT屬性的典型用法代碼示例。如果您正苦於以下問題:Java Side.LEFT屬性的具體用法?Java Side.LEFT怎麽用?Java Side.LEFT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類javafx.geometry.Side
的用法示例。
在下文中一共展示了Side.LEFT屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: BlurbGroupsPanel
public BlurbGroupsPanel(GroupType type) {
DOCK_KEY = new DockKey(type.dockName(), type.dockName(), type.dockDescription(), type.dockIcon(), TabPolicy.Closable,
Side.LEFT);
Node text = new Text(type.dockName() + " Available only in MarathonITE");
StackPane sp = new StackPane(text);
node = sp;
}
示例2: setYAxisBorderColor
public void setYAxisBorderColor(final Paint FILL) {
if (Side.LEFT == getYAxis().getSide()) {
getYAxis().setBorder(new Border(
new BorderStroke(Color.TRANSPARENT, FILL, Color.TRANSPARENT, Color.TRANSPARENT, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID,
BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderStroke.DEFAULT_WIDTHS, Insets.EMPTY)));
} else {
getYAxis().setBorder(new Border(
new BorderStroke(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, FILL, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID,
BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderStroke.DEFAULT_WIDTHS, Insets.EMPTY)));
}
}
示例3: buildMenu
private SidePopupView buildMenu () {
Menu menu = new Menu();
final MenuItem logout = new MenuItem("Logout", MaterialDesignIcon.REMOVE.graphic());
logout.setOnAction(evt -> {
this.menu.hide();
});
menu.getItems().add(logout);
return new MenuSidePopupView(menu, Side.LEFT);
}
示例4: decorate
@Override
public void decorate(Node control, Pane container) {
super.decorate(control, container);
if (side == Side.LEFT || side == Side.RIGHT) {
((Chart) control).setMinWidth(250); // set minimal size for control, because lenegd dosn't fit
}
}
示例5: decorate
@Override
public void decorate(Node control, Pane container) {
super.decorate(control, container);
if (side == Side.LEFT || side == Side.RIGHT) {
((XYChart) control).getYAxis().setStyle(style);
} else {
((XYChart) control).getXAxis().setStyle(style);
}
}
示例6: 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;
}
}
示例7: 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;
}
}