javafx.scene.layout.BorderPane.getCenter()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中javafx.scene.layout.BorderPane.getCenter()方法的一些代码示例,展示了BorderPane.getCenter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BorderPane.getCenter()方法的具体详情如下:
包路径:javafx.scene.layout.BorderPane
类名称:BorderPane
方法名:getCenter

BorderPane.getCenter介绍

暂无

代码示例

代码示例来源:origin: com.github.giulianini.jestures/jestures

@Override
public void onGestureRecognized(final String gestureName) {
  // Snack bar with the gesture name
  Platform.runLater(() -> {
    ViewUtilities.showSnackBar((Pane) this.recorderPane.getCenter(), gestureName, Duration.MEDIUM,
        DimDialogs.MEDIUM, null);
  });
}

代码示例来源:origin: org.netbeans.html/net.java.html.boot.fx

private void _autofit() {
  if (container.getCenter() != webView) {
    container.setCenter(webView);
  }
  webView.setMaxWidth( Integer.MAX_VALUE );
  webView.setMaxHeight( Integer.MAX_VALUE );
  webView.setMinWidth( -1 );
  webView.setMinHeight( -1 );
  webView.autosize();
}

代码示例来源:origin: com.github.giulianini.jestures/jestures

@Override
public void loadUserProfile(final String name) {
  try {
    // Load the actual user
    this.recognizer.loadUserProfile(name);
  } catch (final IOException e1) {
    ViewUtilities.showNotificationPopup("User Dataset not found", "Regenerating it", Duration.MEDIUM, // NOPMD
        NotificationType.ERROR, t -> e1.printStackTrace());
  } catch (final JsonSyntaxException e2) {
    ViewUtilities.showNotificationPopup("Json file changed by human!", "Please click to se exception",
        Duration.MEDIUM, // NOPMD
        NotificationType.ERROR, t -> e2.printStackTrace());
  }
  // Set User name in scroll bar
  ((Label) this.userScrollPane.getBottomBar().getChildren().get(0)).setText(name);
  // Load user gestures
  ViewUtilities.showSnackBar((Pane) this.recorderPane.getCenter(), "Database loaded and Gesture updated!",
      Duration.MEDIUM, DimDialogs.SMALL, null);
  // Create the gesture tree representation.
  this.createGestureTreeView(this.recognizer.getUserName());
  // Initialize the gesture length.
  this.gestureLength = this.recognizer.getUserGestureLength();
  // Initialize Charts
  this.setChart(this.gestureLength.getFrameNumber(), this.gestureLength.getFrameNumber());
  this.startButton.setDisable(false);
}

代码示例来源:origin: stackoverflow.com

XYChart<Number, Number> chart1 = (XYChart<Number, Number>) pane1.getCenter();
plotLine(chart1, LV1, mouseEvent.getX() + 1);

代码示例来源:origin: org.gillius/jfxutils

borderPane.setLeft( replacement );
} else if ( borderPane.getCenter() == original ) {
  children.remove( original );
  borderPane.setCenter( replacement );

相关文章