Package javafx.geometry

Examples of javafx.geometry.Insets


        }
      }
    });
    final GridPane editMenu = new GridPane();
    editMenu.setAlignment(Pos.BOTTOM_RIGHT);
    editMenu.setPadding(new Insets(7d, 0, 0, 0));
    editMenu.setHgap(2d);
    editMenu.setVgap(5d);
    editMenu.add(menuNewItemButton, 0, 0);
    editMenu.add(menuRemoveItemButton, 0, 1);
    editMenu.setMaxSize(MENU_BUTTON_WIDTH, MENU_BUTTON_HEIGHT);
View Full Code Here


    setCache(true);
    setCacheHint(CacheHint.SPEED);
    this.onColor = onColor != null ? onColor : Digit.getDefaultOnColor();
    this.offColor = offColor != null ? offColor : Digit.getDefaultOffColor();
    this.scale = scale;
    setPadding(new Insets(5, 5, 5, 5));
    this.valueProperty.addListener(new ChangeListener<String>() {
      @Override
      public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
        updateValue(newValue);
      }
View Full Code Here

          getChildren().add(circleBox);
        } else {
          d = c == '-' ? Digit.NEGATIVE_SIGN_DIGIT : Integer.valueOf(String.valueOf(c));
          digit = new Digit(getScale(), d, onColor, offColor);
          getChildren().add(digit);
          setMargin(digit, new Insets(0, 0, 0, 1));
          //digit.setLayoutX(i * 80);
        }
      } else if (c != '.') {
        d = c == '-' ? Digit.NEGATIVE_SIGN_DIGIT : Integer.valueOf(String.valueOf(c));
        digit = (Digit) getChildren().get(i);
View Full Code Here

   */
  public Region createTitleBarItems() {
    final HBox menu = new HBox(10d);
    menu.getStyleClass().add("title-bar-menu");
    menu.setAlignment(Pos.CENTER);
    menu.setPadding(new Insets(0, 50d, 0, 50d));
    final ImageView helpButton = RS.imgView(RS.IMG_HELP);
    final DropShadow effect = DropShadowBuilder.create().color(GuiUtil.COLOR_SELECTED).build();
    helpButton.setCursor(Cursor.HAND);
    helpButton.setEffect(effect);
    helpButton.addEventHandler(MouseEvent.ANY, new EventHandler<MouseEvent>() {
View Full Code Here

            throw new RuntimeException(e1);
          }
            final VBox frame = new VBox(10);
            final ImageView imgView = new ImageView(image);
            frame.getStyleClass().add("displayshelfpopup");
            VBox.setMargin(imgView, new Insets(10, 10, 0, 10));
            final VBox info = new VBox();
            VBox.setMargin(info, new Insets(0, 10, 0, 10));
            final Text infoText = new Text(label.getText());
            infoText.setWrappingWidth(imgView.getImage().getWidth());
            info.setPrefHeight(imgView.getImage().getHeight() / 7);
            info.getChildren().add(infoText);
            frame.getChildren().addAll(imgView, info);
View Full Code Here

      final String newValStr = useInt ? String.format(format,
          newVal.intValue()) : String.format(format, newVal.floatValue());
      if (gaugeDigits == null) {
        gaugeDigits = new Digits(newValStr, 0.15f, onColor, offColor);
        gaugeDigits.setEffect(new DropShadow());
            HBox.setMargin(gaugeDigits, new Insets(0, 5, 0, 5));
            //gaugeDigits.getTransforms().add(new Scale(0.2f, 0.2f, 0, 0));
        gaugeDigits.valueProperty().addListener(new ChangeListener<String>() {
          @Override
          public void changed(ObservableValue<? extends String> observable,
              String oldValue, String newValue) {
View Full Code Here

      statusBarRight.setId("status-bar-right");
      statusBarRight.setPrefWidth(BOTTOM_RIGHT_WIDTH);
      statusBarRight.setMaxWidth(BOTTOM_RIGHT_WIDTH);
      if (isResizable) {
        final WindowReziseButton windowResizeButton = new WindowReziseButton(stage, this.getMinWidth(), this.getMinHeight());
        HBox.setMargin(windowResizeButton, new Insets(BOTTOM_BORDER_HEIGHT - 11, 0, 0, 0));
        statusBarRight.getChildren().addAll(windowResizeButton);
      }
        statusBar.getChildren().addAll(statusBarLeft, statusBarCenter, statusBarRight);
     
      // content adjustment
View Full Code Here

  }
 
  private ImageView newTitleBarButton(final String imageName, final double enterBrightness, final double exitedBrightness) {
      final ImageView btn = RS.imgView(imageName);
      btn.setId("title-menu");
      HBox.setMargin(btn, new Insets(TOP_BORDER_HEIGHT / 2 + TOP_MIN_MAX_CLOSE_ADJUSTMENT, 0, 0, 0));
        final ColorAdjust btnEffect = new ColorAdjust();
        //btnEffect.setContrast(enterBrightness);
        btnEffect.setBrightness(exitedBrightness);
        btn.setEffect(btnEffect);
      btn.setOnMouseEntered(new EventHandler<MouseEvent>() {
View Full Code Here

    final VBox toggleView = new VBox(10d);
    toggleView.getChildren().addAll(emailIcon);

    final GridPane connectionGrid = new GridPane();
    connectionGrid.setPadding(new Insets(20d, 5, 5, 5));
    connectionGrid.setHgap(15d);
    connectionGrid.setVgap(15d);
    connectionGrid.add(smtpHost, 0, 0);
    connectionGrid.add(smtpPort, 1, 0);
    connectionGrid.add(imapHost, 0, 1);
View Full Code Here

      final VBox stepperBar = new VBox(NUMERIC_STEPPER_QUARTER_HEIGHT);
      stepperBar.getChildren().addAll(createArrowButton(true),
          createArrowButton(false));

      final Region digitsDisplay = GuiUtil.createBackgroundDisplay(
          new Insets(NUMERIC_STEPPER_EIGHTH_HEIGHT,
              NUMERIC_STEPPER_QUARTER_HEIGHT,
              NUMERIC_STEPPER_EIGHTH_HEIGHT,
              NUMERIC_STEPPER_QUARTER_HEIGHT),
          NUMERIC_STEPPER_QUARTER_HEIGHT, 2, true,
          0, 0, numericStepperDigits, stepperBar);
View Full Code Here

TOP

Related Classes of javafx.geometry.Insets

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.