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