本文整理匯總了Java中javafx.geometry.Side.TOP屬性的典型用法代碼示例。如果您正苦於以下問題:Java Side.TOP屬性的具體用法?Java Side.TOP怎麽用?Java Side.TOP使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類javafx.geometry.Side
的用法示例。
在下文中一共展示了Side.TOP屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: sideProperty
/**
* The position of the tabs in the TabPane.
*/
public final ObjectProperty<Side> sideProperty() {
if (side == null) {
side = new ObjectPropertyBase<Side>(Side.TOP) {
private Side oldSide;
@Override
protected void invalidated() {
oldSide = get();
pseudoClassStateChanged(TOP_PSEUDOCLASS_STATE, (oldSide == Side.TOP || oldSide == null));
pseudoClassStateChanged(RIGHT_PSEUDOCLASS_STATE, (oldSide == Side.RIGHT));
pseudoClassStateChanged(BOTTOM_PSEUDOCLASS_STATE, (oldSide == Side.BOTTOM));
pseudoClassStateChanged(LEFT_PSEUDOCLASS_STATE, (oldSide == Side.LEFT));
}
@Override
public Object getBean() {
return DockTabPane.this;
}
@Override
public String getName() {
return "side";
}
};
}
return side;
}
示例2: computeBaselineOffset
@Override
public double computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset) {
Side tabPosition = getSkinnable().getSide();
if (tabPosition == Side.TOP) {
return tabHeaderArea.getBaselineOffset() + topInset;
}
return 0;
}
示例3: getBaselineOffset
@Override
public double getBaselineOffset() {
if (getSkinnable().getSide() == Side.TOP) {
return headersRegion.getBaselineOffset() + snappedTopInset();
}
return 0;
}
示例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;
}
}
示例6: DockKey
public DockKey(String dockKey, String name) {
this(dockKey, name, null, null, null, Side.TOP);
}
示例7: getSide
/**
* The current position of the tabs in the TabPane. The default position
* for the tabs is Side.Top.
*
* @return The current position of the tabs in the TabPane.
*/
public final Side getSide() {
return side == null ? Side.TOP : side.get();
}