当前位置: 首页>>代码示例>>Java>>正文


Java Side.LEFT属性代码示例

本文整理汇总了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;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:7,代码来源:BlurbGroupsPanel.java

示例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)));
    }
}
 
开发者ID:HanSolo,项目名称:smoothcharts,代码行数:11,代码来源:SmoothedChart.java

示例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);
}
 
开发者ID:FrancisG-Massey,项目名称:Capstone2016,代码行数:12,代码来源:TraplineListView.java

示例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
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:7,代码来源:LegendSideAlignmentCssStyle.java

示例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);
    }
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:9,代码来源:AxisSideAlignmentCssStyle.java

示例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;
    }
}
 
开发者ID:Heverton,项目名称:grapheditor,代码行数:17,代码来源:GraphEditorDemoController.java

示例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;
    }
}
 
开发者ID:Heverton,项目名称:grapheditor,代码行数:20,代码来源:DefaultConnectorTypes.java


注:本文中的javafx.geometry.Side.LEFT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。