Package javafx.scene

Examples of javafx.scene.Node


    // add tick marks
    addTickMarks(gaugeParent, true, false);
    // add display that will show the current tick value
    final double tickValueHeight = 20d * sizeScale;
    final Node tickValueDisplay = this.indicatorType == IndicatorType.KNOB ? null :
      createTickValueDisplay(tickValueHeight, tickValueDisplayFillProperty, tickValueDisplayTextFillProperty);
    final Node tickValueDisplay2 = this.indicatorType == IndicatorType.KNOB ? null :
      createTickValueDisplay2(tickValueHeight, tickValueDisplayFillProperty, tickValueDisplayTextFillProperty);
   
    // create intensity indicators that will indicate when values are moderate, medium, or intense
    final Group intensityIndicator = createIntensityIndicator();
   
View Full Code Here


    }

    @Override
    protected void layoutChildren() {
      super.layoutChildren();
      Node right = getRight();
      Node left = getLeft();
      double ratio = getHeight() / right.getLayoutBounds().getHeight();
      right.setScaleY(ratio);
      right.setScaleX(ratio / 3);
      left.setScaleY(ratio);
      left.setScaleX(ratio / 3);
    }
View Full Code Here

        this.queuedConnections = new Snapshot(id, "Queued Connections", "Connections");
        this.activeSessions = new Snapshot(id, "HTTP Sessions", "#");
        this.expiredSessions = new Snapshot(id, "Expired Sessions", "#");
        this.successfulTXPerf = new Snapshot(id, "Commits Per Second", "#");
        this.failedTXPerf = new Snapshot(id, "Rollbacks Per Second", "#");
        final Node liveStream = new SnapshotTable(this.dashboardPresenter.getSnapshots()).createTable();
        this.escalations = new Escalations(liveStream,this.dashboardPresenter.getEscalationsPresenterBindings());
        this.status = new Status(this.dashboardPresenter.getDeadlockedThreads());
    }
View Full Code Here

    void createPoolTab(ConnectionPoolBindings valueAdded) {
        ReadOnlyLongProperty id = this.dashboardPresenter.getId();
        String jndiName = valueAdded.getJndiName().get();
        ConnectionPool connectionPool = new ConnectionPool(id, valueAdded);
        Node view = connectionPool.view();
        Tab tab = createTab(view, "Resource: " + jndiName);
        this.tabPane.getTabs().add(tab);
    }
View Full Code Here

 
  public static void executeWithProgressDialogInBackground(final Runnable runnable, final StackPane target, final String text){
    Thread th = new Thread(){
      @Override
      public void run() {
        final Node progressIndicator = createProgressIndicator();
        final Label label = new Label(text);
        try {
          Platform.runLater(new Runnable() {
            @Override
            public void run() {
View Full Code Here

    });
  }
 
  public static void addMarker(final XYChart<?, ?> chart, final StackPane chartWrap) {
    final Line valueMarker = new Line();
    final Node chartArea = chart.lookup(".chart-plot-background");

    chartArea.setOnMouseMoved(new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent event) {
        Point2D scenePoint = chart.localToScene(event.getSceneX(), event.getSceneY());
        Point2D position = chartWrap.sceneToLocal(scenePoint.getX(), scenePoint.getY());
       
        Bounds chartAreaBounds = chartArea.localToScene(chartArea.getBoundsInLocal());
        valueMarker.setStartY(0);
        valueMarker.setEndY(chartWrap.sceneToLocal(chartAreaBounds).getMaxY()-chartWrap.sceneToLocal(chartAreaBounds).getMinY());
       
        valueMarker.setStartX(0);
        valueMarker.setEndX(0);
        valueMarker.setTranslateX(position.getX()-chartWrap.getWidth()/2);
       
        double ydelta = chartArea.localToScene(0, 0).getY()-chartWrap.localToScene(0,0).getY();
        valueMarker.setTranslateY(-ydelta*2);
      }
    });
   
    chartWrap.getChildren().add(valueMarker);
 
View Full Code Here

  }

  @Override
  public Node createDefaultFilter() {
    DefaultFilterFactory defaultFilterFactory = new DefaultFilterFactory();
    final Node createAdditionalFilter = createAdditionalFilter();
    final Node engineFilterUI = defaultFilterFactory.createEngineFilterUI(getFilter(), availableEngines);
   
   
    if (createAdditionalFilter!=null){
      return defaultFilterFactory.createVerticalMultiFilter(createAdditionalFilter,engineFilterUI);
    } else {
View Full Code Here

   
    BorderPane masterBorderPane = new BorderPane();
    masterStackPane.getChildren().add(masterBorderPane);
   
    BorderPane filterBorderPane = new BorderPane();
    final Node leftFilterPart = createLeftFilterPart();
    filterBorderPane.setLeft(leftFilterPart);
    Node filterContent=this.createFilterContent();
    StackPane filterContentStackPane = new StackPane();
    filterBorderPane.setCenter(filterContentStackPane);
    if (filterForm.getController().supportsFiltering()){
      filterContentStackPane.getChildren().add(filterContent);
    }
    Node rightButtons = createRightFilterButtons(filterContent, leftFilterPart, filterContentStackPane);
    BorderPane.setMargin(rightButtons, new Insets(0,3,0,3));
    filterBorderPane.setRight(rightButtons);
    filterBorderPane.setBottom(new Separator(Orientation.HORIZONTAL));

    masterBorderPane.setTop(filterBorderPane);
View Full Code Here

    settings.disableProperty().bind(toggleButton.selectedProperty());
    return buttonsPane;
  }
 
  private Node createFilterContent(){
    final Node content = filterForm.createContent();
    if (content==null){
      return new Pane();
    }
    return content;
  }
View Full Code Here

  }
 
  public Node createVerticalMultiFilter(Node... filterrows){
    VBox vbox = new VBox(3);
    for (int i = 0; i < filterrows.length; i++) {
      Node filterrow = filterrows[i];
      vbox.getChildren().add(filterrow);
      if (i < filterrows.length-1){
        vbox.getChildren().add(new Separator(Orientation.HORIZONTAL));
      }
    }
View Full Code Here

TOP

Related Classes of javafx.scene.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.