当前位置: 首页>>代码示例>>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;未经允许,请勿转载。