Package javafx.scene.layout

Examples of javafx.scene.layout.Region


                    navPanel.setChart((DetailViewPane) visualization);
                }
                visualization.hasEvents.addListener((ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) -> {
                    if (newValue == false) {

                        setCenter(new StackPane(visualization, new Region() {
                            {
                                setBackground(new Background(new BackgroundFill(Color.GREY, CornerRadii.EMPTY, Insets.EMPTY)));
                                setOpacity(.3);
                            }
                        }, new NoEventsDialog(() -> {
View Full Code Here


                        for (Long bin : fbins) {
                            if (isCancelled()) {
                                break;
                            }
                            Region bar = new Region();
                            //scale them to fit in histogram height
                            bar.prefHeightProperty().bind(histogramBox.heightProperty().multiply(Math.log(bin)).divide(fMax));
                            bar.setMaxHeight(USE_PREF_SIZE);
                            bar.setMinHeight(USE_PREF_SIZE);
                            bar.setBackground(background);
                            bar.setOnMouseEntered((MouseEvent event) -> {
                                Tooltip.install(bar, new Tooltip(bin.toString()));
                            });
                            bar.setEffect(lighting);
                            //they each get equal width to fill the histogram horizontaly
                            HBox.setHgrow(bar, Priority.ALWAYS);
                            histogramBox.getChildren().add(bar);
                        }
                    });
View Full Code Here

    public AggregateEventNode(final AggregateEvent event, AggregateEventNode parentEventNode, EventDetailChart chart) {
        this.event = event;
        descLOD.set(event.getLOD());
        this.parentEventNode = parentEventNode;
        this.chart = chart;
        final Region region = new Region();
        HBox.setHgrow(region, Priority.ALWAYS);
        final HBox hBox = new HBox(descrLabel, countLabel, region, minusButton, plusButton);
        hBox.setPrefWidth(USE_COMPUTED_SIZE);
        hBox.setMinWidth(USE_PREF_SIZE);
        hBox.setPadding(new Insets(2, 5, 2, 5));
View Full Code Here

    for( LineCell cell : visibleCells ) {
      if( cell.getBoundsInParent().contains(p) ) {
        if( cell.getDomainElement() != null ) {
          // Calculate to cell relative
          p = p.subtract(cell.getLayoutX(), cell.getLayoutY());
          Region g = (Region) cell.getGraphic();
          p = p.subtract(g.getLayoutX(), g.getLayoutY());
         
          TextFlow flow = (TextFlow) g.getChildrenUnmodifiable().get(0);
          // Calculate to text flow
          p = p.subtract(flow.getLayoutX(), flow.getLayoutY());
          for( Node n : flow.getChildren() ) {
            Text text = (Text) n;
            if( text.getBoundsInParent().contains(p) ) {
View Full Code Here

  protected abstract Node createDialogArea();

  protected Node createButtonBar() {
    HBox b = new HBox(10);
    b.setPadding(new Insets(10));
    Region spacer = new Region();
   
    b.getChildren().add(spacer);
    HBox.setHgrow(spacer, Priority.ALWAYS);
   
    buttons = createButtonsForBar();
View Full Code Here

TOP

Related Classes of javafx.scene.layout.Region

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.