Package javafx.scene.control

Examples of javafx.scene.control.Tooltip


        });
    }

    private void setTooltip() {
        Tooltip.uninstall(this, tooltip);
        tooltip = new Tooltip(formatSpan(getDateTime())
                + "\nRight-click to remove."
                + "\nRight-drag to reposition.");
        Tooltip.install(this, tooltip);
    }
View Full Code Here


            }
        });
    }

    private void installTooltip() {
        Tooltip.install(AggregateEventNode.this, new Tooltip(getEvent().getEventIDs().size() + " " + getEvent().getType() + " events\n"
                + getEvent().getDescription()
                + "\nbetween " + getEvent().getSpan().getStart().toString(TimeLineController.getZonedFormatter())
                + "\nand      " + getEvent().getSpan().getEnd().toString(TimeLineController.getZonedFormatter())));
    }
View Full Code Here

                            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

                                    node.setStyle("-fx-border-width: 2; -fx-border-color: " + ColorUtilities.getRGBCode(et.getSuperType().getColor()) + "; -fx-bar-fill: " + ColorUtilities.getRGBCode(et.getColor()));
                                    node.setCursor(Cursor.HAND);

                                    node.setOnMouseEntered((MouseEvent event) -> {
                                        //defer tooltip creation till needed, this had a surprisingly large impact on speed of loading the chart
                                        final Tooltip tooltip = new Tooltip(count + " " + et.getDisplayName() + " events\n"
                                                + "between " + dateString + "\n"
                                                + "and     "
                                                + interval.getEnd().toString(rangeInfo.getTickFormatter()));
                                        tooltip.setGraphic(new ImageView(et.getFXImage()));
                                        Tooltip.install(node, tooltip);
                                        node.setEffect(new DropShadow(10, et.getColor()));
                                    });
                                    node.setOnMouseExited((MouseEvent event) -> {
                                        if (selectedNodes.contains(node)) {
View Full Code Here

        setModel(controller.getEventsModel());
        descrLODSlider.disableProperty().bind(controller.getViewMode().isEqualTo(VisualizationMode.COUNTS));
        Back back = new Back(controller);
        backButton.disableProperty().bind(back.disabledProperty());
        backButton.setOnAction(back);
        backButton.setTooltip(new Tooltip("Back: " + back.getAccelerator().getName()));
        Forward forward = new Forward(controller);
        forwardButton.disableProperty().bind(forward.disabledProperty());
        forwardButton.setOnAction(forward);
        forwardButton.setTooltip(new Tooltip("Forward: " + forward.getAccelerator().getName()));

    }
View Full Code Here

        private void setInfoLabelToolTipText(final String text) {
            Platform.runLater(new Runnable() {
                @Override
                public void run() {
                    infoLabel.setTooltip(new Tooltip(text));
                }
            });
        }
View Full Code Here

            loader.setClassLoader(getClass().getClassLoader());
            loader.load();

            copyWidget.setCursor(Cursor.HAND);
            AwesomeDude.setIcon(copyWidget, AwesomeIcon.COPY);
            Tooltip.install(copyWidget, new Tooltip("Copy address to clipboard"));

            qrCode.setCursor(Cursor.HAND);
            AwesomeDude.setIcon(qrCode, AwesomeIcon.QRCODE);
            Tooltip.install(qrCode, new Tooltip("Show a barcode scannable with a mobile phone for this address"));

            addressStr = convert(address);
            addressLabel.textProperty().bind(addressStr);
        } catch (IOException e) {
            throw new RuntimeException(e);
View Full Code Here

        animatedBind(progressLine, progressLine.endXProperty(), pixelWidth);
        animatedBind(progressCircle, progressCircle.centerXProperty(), pixelWidth);

        progressLine.visibleProperty().bind(pixelWidth.greaterThan(0.0));
        progressCircle.visibleProperty().bind(progressLine.visibleProperty());
        Tooltip tooltip = new Tooltip();
        // TODO: Maybe use Adam's BtcFormat class here instead.
        tooltip.textProperty().bind(new ReactiveCoinFormatter("%s BTC raised so far", MonetaryFormat.BTC, pledgedAmount));
        Tooltip.install(progressCircle, tooltip);
    }
View Full Code Here

    return control;
  }
 
  public String getToolTipText () {
    String rv = null;
    Tooltip t = tab.getTooltip();
    if( t != null ) {
      rv = t.getText();
    }
    return rv;
  }
View Full Code Here

 
  public void setToolTipText (String string) {
    if( string == null || string.isEmpty() ) {
      tab.setTooltip(null);
    } else {
      Tooltip t = tab.getTooltip();
      if( t == null ) {
        tab.setTooltip(new Tooltip(string));
      } else {
        t.setText(string);
      }
    }
  }
View Full Code Here

TOP

Related Classes of javafx.scene.control.Tooltip

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.