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


Java SplitPane.setOrientation方法代码示例

本文整理汇总了Java中javafx.scene.control.SplitPane.setOrientation方法的典型用法代码示例。如果您正苦于以下问题:Java SplitPane.setOrientation方法的具体用法?Java SplitPane.setOrientation怎么用?Java SplitPane.setOrientation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.control.SplitPane的用法示例。


在下文中一共展示了SplitPane.setOrientation方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createExtractedVarsTextArea

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private Node createExtractedVarsTextArea(VariableCollectionController controller, FreeVariableListValidator validator) {
  final TextArea textArea = new TextArea();
  textArea.getStyleClass().addAll("model-text-area");
  textArea.setEditable(false);

  FreeVariableList set = controller.getFreeVariableList();

  updateText(textArea, set.getVariables());
  set.getVariables().addListener((ListChangeListener<? super FreeVariable>) c ->
      updateText(textArea, set.getVariables()));

  final TextArea problemsArea = new TextArea();
  problemsArea.getStyleClass().addAll("model-text-area");
  textArea.setEditable(false);

  updateProblemsText(problemsArea, validator);

  validator.problemsProperty().addListener((Observable o) -> updateProblemsText(problemsArea, validator));

  SplitPane splitPane = new SplitPane(textArea, problemsArea);
  splitPane.setOrientation(Orientation.VERTICAL);

  return splitPane;
}
 
开发者ID:VerifAPS,项目名称:stvs,代码行数:25,代码来源:VariableCollectionDemo.java

示例2: create

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private void create() {
  myEditorController = new EditorController();
  HierarchyTreeViewController componentTree = new HierarchyTreeViewController(myEditorController);
  ContentPanelController canvas = new ContentPanelController(myEditorController);
  InspectorPanelController propertyTable = new InspectorPanelController(myEditorController);
  LibraryPanelController palette = new LibraryPanelController(myEditorController);

  loadFile();
  startChangeListener();

  SplitPane leftPane = new SplitPane();
  leftPane.setOrientation(Orientation.VERTICAL);
  leftPane.getItems().addAll(palette.getPanelRoot(), componentTree.getPanelRoot());
  leftPane.setDividerPositions(0.5, 0.5);

  SplitPane.setResizableWithParent(leftPane, Boolean.FALSE);
  SplitPane.setResizableWithParent(propertyTable.getPanelRoot(), Boolean.FALSE);

  SplitPane mainPane = new SplitPane();

  mainPane.getItems().addAll(leftPane, canvas.getPanelRoot(), propertyTable.getPanelRoot());
  mainPane.setDividerPositions(0.11036789297658862, 0.8963210702341137);

  myPanel.setScene(new Scene(mainPane, -1, -1, true, SceneAntialiasing.BALANCED));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:SceneBuilderImpl.java

示例3: PMDCheckComposite

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
public PMDCheckComposite(File sourceFile) {
	this.sourceFile = sourceFile;

	javaTextArea = new JavaTextArea();
	xmlEditor = new XMLEditor();
	SplitPane splitPane = new SplitPane(javaTextArea, xmlEditor);
	splitPane.setOrientation(Orientation.VERTICAL);
	splitPane.setDividerPositions(0.7d, 0.3d);

	setCenter(splitPane);
	violationLabel = new Label();
	setBottom(violationLabel);

	if (this.sourceFile.isDirectory()) {
		dirFilePmd(this.sourceFile);
	} else {
		simpleFilePmd(this.sourceFile);
	}

}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:21,代码来源:PMDCheckComposite.java

示例4: addRow

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
void addRow(final int position) {
				SplitPane splitRow = new SplitPane();
				splitRow.setOrientation(Orientation.HORIZONTAL);
				
				// For now, we create a row with the same number of columns in every row
				// Create viewers & bind dividers
				splitRow.getItems().clear();
				SplitPane firstRow = splitPaneRows.get(0);
				splitRow.getItems().add(createViewer().getView());
				for (int i = 0; i < firstRow.getDividers().size(); i++) {
					splitRow.getItems().add(createViewer().getView());
//					splitRow.getDividers().get(i).positionProperty().bindBidirectional(firstRow.getDividers().get(i).positionProperty());
				}
				
				// Ensure the new divider takes up half the space
				double lastDividerPosition = position == 0 ? 0 : splitPaneMain.getDividers().get(position-1).getPosition();
				double nextDividerPosition = position >= splitPaneRows.size()-1 ? 1 : splitPaneMain.getDividers().get(position).getPosition();
				splitPaneRows.add(position, splitRow);
				splitPaneMain.getItems().add(position+1, splitRow);
				splitPaneMain.setDividerPosition(position, (lastDividerPosition + nextDividerPosition)/2);
				
				refreshDividerBindings();
			}
 
开发者ID:qupath,项目名称:qupath,代码行数:24,代码来源:QuPathGUI.java

示例5: drawNode

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
@Override
public Node drawNode() {
    SplitPane split_pane = new SplitPane();
    Rectangle blue_rect = new Rectangle(SLOT_WIDTH, SLOT_HEIGHT);
    blue_rect.setFill(new Color(0, 0, 1, 1));
    Rectangle red_rect = new Rectangle(SLOT_WIDTH, SLOT_HEIGHT);
    red_rect.setFill(new Color(1, 0, 0, 1));

    split_pane.getItems().add(blue_rect);
    split_pane.getItems().add(red_rect);

    split_pane.setMaxSize(SLOT_WIDTH, SLOT_HEIGHT);
    split_pane.setPrefSize(SLOT_WIDTH, SLOT_HEIGHT);
    split_pane.setMinSize(SLOT_WIDTH, SLOT_HEIGHT);

    split_pane.setStyle("-fx-border-color: darkgray;");

    split_pane.setOrientation(orientation);
    return split_pane;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:21,代码来源:SplitPaneApp.java

示例6: createNested

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
protected SplitPane createNested() {
    SplitPane nested_split_pane = (SplitPane) createObject();
    nested_split_pane.setId(NESTED_SPLIT);

    boolean resizable = false;
    for (Node node : nested_split_pane.getItems()) {
        SplitPane.setResizableWithParent(node, resizable);
        if (SplitPane.isResizableWithParent(node) != resizable) {
            reportGetterFailure("SplitPane.isResizableWithParent(node)");
            break;
        }
        resizable = !resizable;
    }
    nested_split_pane.setOrientation(orientation);

    nested_split_pane.setMaxSize(-1, -1);
    nested_split_pane.setPrefSize(-1, -1);
    nested_split_pane.setMinSize(-1, -1);

    return nested_split_pane;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:22,代码来源:SplitPaneApp.java

示例7: layoutContent

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private Node layoutContent() {					
	final VBox optionCardLayout = new VBox(5);
	optionCardLayout.getChildren().addAll(categoryNameLabel, optionsView);
	optionCardLayout.setPadding(new Insets(0, 5, 0, 15));
	
	final SplitPane mainLayout = new SplitPane();        
	mainLayout.setOrientation(Orientation.HORIZONTAL);
	mainLayout.setDividerPosition(0, 0.20);
	mainLayout.getItems().addAll(optionCategoriesTreeView, optionCardLayout);
	
	mainLayout.setPrefSize(770, 500);
	categoryNameLabel.prefWidthProperty().bind(mainLayout.widthProperty());
       
       SplitPane.setResizableWithParent(optionCategoriesTreeView, Boolean.FALSE);
	return mainLayout;
}
 
开发者ID:veroslav,项目名称:jfx-torrent,代码行数:17,代码来源:PreferencesWindow.java

示例8: configureBody

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
/**
 * Configures the center part(body) of the application.
 */
private void configureBody() {
	// Getting the left side top pane. (Rectangle's view)
	StackPane rectanglePane = configureRectanglePane();

	// Getting the left side bottom pane. (Circle's view)
	StackPane circlePane = configureCirclePane();

	// Getting the right side settings pane.
	ScrollPane rightPane = configureGradientSettings();

	SplitPane leftPane = new SplitPane();
	leftPane.setOrientation(Orientation.VERTICAL);
	leftPane.getItems().addAll(rectanglePane, circlePane);

	SplitPane mainPane = new SplitPane();
	mainPane.getItems().addAll(leftPane, rightPane);

	// Setting the entire layout as the center to the root(BorderPane) node.
	center.setCenter(mainPane);
}
 
开发者ID:SaiPradeepDandem,项目名称:javafx8-gradient-builder,代码行数:24,代码来源:GradientBuilderApp.java

示例9: getPane

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private Node getPane() {
    SplitPane splitPane = new SplitPane();
    splitPane.setOrientation(Orientation.VERTICAL);
    initTopPane();
    failureStackView = new FailureDetailView();
    splitPane.getItems().addAll(topPane, failureStackView);
    return splitPane;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:9,代码来源:TestRunner.java

示例10: OptionsPane

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
/**
 * Creation of the OptionsPane. Pass in a map that fully maps all titles to their respective panes.
 * <p>
 * CAUTION: Map should can't be null. However, the map can be empty.
 *
 * @param optionsMenuModel
 * 		Map from tree names to panes
 */
public OptionsPane( Map<OptionSection, Pane> optionsMenuModel )
{
	//TODO use some kind of selection model to default to select first item or last item selected
	optionScreenMap = optionsMenuModel;
	sections = new OptionsSettingsTree(optionsMenuModel.keySet());
	sections.setTreeDoubleClick(this::onTreeDoubleClick);

	sectionView = new SwapPane();

	SplitPane sectionContentSplitPane = new SplitPane();
	sectionContentSplitPane.setOrientation(Orientation.HORIZONTAL);
	sectionContentSplitPane.getItems().addAll(sections, sectionView);

	sectionContentSplitPane.setDividerPositions(0.2, 1);
	setCenter(sectionContentSplitPane);

	okAction = () -> {
	};
	cancelAction = () -> {
	};

	Button okButton = new Button();
	okButton.setText("OK");
	okButton.setOnMouseClicked(this::okButtonClicked);

	Button cancelButton = new Button();
	cancelButton.setText("Cancel");
	cancelButton.setOnMouseClicked(this::cancelButtonClicked);

	HBox buttonBar = new HBox();
	buttonBar.getChildren().addAll(okButton, cancelButton);
	buttonBar.setAlignment(Pos.BASELINE_RIGHT);

	setBottom(buttonBar);
}
 
开发者ID:dhawal9035,项目名称:WebPLP,代码行数:44,代码来源:OptionsPane.java

示例11: initializeDisplayControls

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private Node initializeDisplayControls(){
	VBox simplecontrols = new VBox();
	simplecontrols.setSpacing(5.0);
	simplecontrols.setPadding(new Insets(0.0, 0.0, 0.0, 5.0));
	simplecontrols.setAlignment(Pos.TOP_CENTER);
	controlsSimple_Pane = simplecontrols;
	
	VBox graphiccontrols = new VBox();
	graphiccontrols.setSpacing(10.0);
	graphiccontrols.setAlignment(Pos.TOP_CENTER);
	
	//SplitPane graphiccontrols = new SplitPane();
	//graphiccontrols.setOrientation(Orientation.VERTICAL);
	
	graphiccontrols.setPadding(new Insets(5.0, 5.0, 0.0, 0.0));
	controlsGraphic_Pane = graphiccontrols;
	
	SplitPane controlsPane = new SplitPane();
	controlsPane.setOrientation(Orientation.HORIZONTAL);
	controlsPane.getItems().addAll(graphiccontrols, simplecontrols);
	controlsPane.setMinSize(380.0, 300.0);
	
	HBox root = new HBox();
	root.setAlignment(Pos.TOP_CENTER);
	root.setPadding(new Insets(5.0, 0.0, 5.0, 5.0));
	root.setMinWidth(380.0);
	root.getChildren().addAll(controlsPane);
	return root;
}
 
开发者ID:Flash3388,项目名称:FlashLib,代码行数:30,代码来源:MainWindow.java

示例12: initializeInputControls

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private Node initializeInputControls(){
	GridPane activatablecontrols = new GridPane();
	activatablecontrols.setAlignment(Pos.CENTER);
	activatablecontrols.setPadding(new Insets(10.0));
	activatablecontrols.setVgap(10.0);
	activatablecontrols.setHgap(10.0);
	controlsActivatable_Pane = activatablecontrols;
	
	GridPane inputcontrols = new GridPane();
	inputcontrols.setAlignment(Pos.CENTER);
	inputcontrols.setPadding(new Insets(10.0));
	inputcontrols.setVgap(10.0);
	inputcontrols.setHgap(15.0);
	controlsInput_Pane = inputcontrols;
	
	VBox estopBox = new VBox();
	estopBox.setSpacing(5.0);
	estopBox.setPadding(new Insets(10.0));
	estopBox.setAlignment(Pos.CENTER);
	estopBox.getChildren().addAll(Dashboard.getEmergencyStopControl().getRoot());
	
	SplitPane controlsPane = new SplitPane();
	controlsPane.setOrientation(Orientation.HORIZONTAL);
	controlsPane.getItems().addAll(inputcontrols, activatablecontrols);
	controlsPane.setMinSize(800.0, 150.0);
	
	BorderPane root = new BorderPane();
	root.setLeft(controlsPane);
	root.setRight(estopBox);
	return root;
}
 
开发者ID:Flash3388,项目名称:FlashLib,代码行数:32,代码来源:MainWindow.java

示例13: createExtractedTableTextArea

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private Pane createExtractedTableTextArea(ConstraintSpecification spec, ConstraintSpecificationValidator recognizer) {
  final TextArea textArea = new TextArea();
  textArea.getStyleClass().addAll("model-text-area");
  textArea.setEditable(false);

  updateText(textArea, spec);

  final Button updateButton = new Button("Refresh");
  updateButton.setOnAction(event -> updateText(textArea, spec));

  final TextArea problemsArea = new TextArea();
  problemsArea.getStyleClass().addAll("model-text-area");
  textArea.setEditable(false);

  updateProblemsText(problemsArea, recognizer);

  recognizer.problemsProperty().addListener((Observable o) -> updateProblemsText(problemsArea, recognizer));

  SplitPane splitPane = new SplitPane(textArea, problemsArea);
  splitPane.setOrientation(Orientation.VERTICAL);
  VBox.setVgrow(splitPane, Priority.ALWAYS);
  return new VBox(updateButton, splitPane);
}
 
开发者ID:VerifAPS,项目名称:stvs,代码行数:24,代码来源:SpecificationTableDemo.java

示例14: createLeftPanelSplitPane

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
/**
 * Create the left panel SplitPane, it contains the upper and lower
 * parts for different TabPane Groups
 * @return left panel SplitPane
 */
public SplitPane createLeftPanelSplitPane() {
    SplitPane sp = new SplitPane();
    sp.setOrientation(Orientation.VERTICAL);
    sp.setDividerPosition(0, 0.6f);
    return sp;
}
 
开发者ID:ztan5,项目名称:TechnicalAnalysisTool,代码行数:12,代码来源:TatMain.java

示例15: init

import javafx.scene.control.SplitPane; //导入方法依赖的package包/类
private void init() {
	txtCommand = new TextArea();
	txtResult = new TextArea();
	btnExec = new Button(" Apply ");
	SplitPane value = new SplitPane(txtResult, txtCommand);

	value.setOrientation(Orientation.VERTICAL);

	setCenter(value);
	setBottom(btnExec);

	btnExec.setOnMouseClicked(this::btnExecOnMouseClick);

	txtCommand.setOnKeyPressed(this::txtCommandOnKeyClick);
}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:16,代码来源:WebViewConsole.java


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