當前位置: 首頁>>代碼示例>>Java>>正文


Java Side.TOP屬性代碼示例

本文整理匯總了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;
}
 
開發者ID:callakrsos,項目名稱:Gargoyle,代碼行數:32,代碼來源:DockTabPane.java

示例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;
}
 
開發者ID:callakrsos,項目名稱:Gargoyle,代碼行數:8,代碼來源:DockTabPaneSkin.java

示例3: getBaselineOffset

@Override
public double getBaselineOffset() {
	if (getSkinnable().getSide() == Side.TOP) {
		return headersRegion.getBaselineOffset() + snappedTopInset();
	}
	return 0;
}
 
開發者ID:callakrsos,項目名稱:Gargoyle,代碼行數:7,代碼來源:DockTabPaneSkin.java

示例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;
    }
}
 
開發者ID:Heverton,項目名稱:grapheditor,代碼行數:17,代碼來源:GraphEditorDemoController.java

示例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;
    }
}
 
開發者ID:Heverton,項目名稱:grapheditor,代碼行數:20,代碼來源:DefaultConnectorTypes.java

示例6: DockKey

public DockKey(String dockKey, String name) {
    this(dockKey, name, null, null, null, Side.TOP);
}
 
開發者ID:jalian-systems,項目名稱:marathonv5,代碼行數:3,代碼來源:DockKey.java

示例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();
}
 
開發者ID:callakrsos,項目名稱:Gargoyle,代碼行數:9,代碼來源:DockTabPane.java


注:本文中的javafx.geometry.Side.TOP屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。