Examples of DropShadow


Examples of javafx.scene.effect.DropShadow

    }

    final Text durationLabel = new Text(25, 25, MediaUtils.activeInfo);
    durationLabel.setFill(Color.WHITESMOKE);
    durationLabel.setFont(Font.font(java.awt.Font.SANS_SERIF, 25));
    final DropShadow ds = new DropShadow();
    ds.setOffsetY(3.0f);
    ds.setColor(Color.BLACK);

    durationLabel.setEffect(ds);

    vbox.getChildren().add(hbox);
    root.getChildren().add(UISession.getMediaView());
View Full Code Here

Examples of javafx.scene.effect.DropShadow

      final BeanPathAdapter<RemoteNode> remoteNodePA) {
    validationFactory = Validation.buildDefaultValidatorFactory();
    setId("control-bar");
    this.actorPA = actorPA;
    this.remoteNodePA = remoteNodePA;
    final DropShadow settingsDS = new DropShadow();
    this.settingsSetTimeline = GuiUtil.createShadowColorIndicatorTimeline(
        settingsDS, ATTENTION_COLOR, Color.BLACK, Timeline.INDEFINITE);
    // help view
    final InnerShadow helpTextEffect = new InnerShadow();
    helpTextEffect.setRadius(10d);
    final Timeline helpTextTimeline = GuiUtil.createShadowColorIndicatorTimeline(
        helpTextEffect, ATTENTION_COLOR, Color.BLACK.brighter(),
        HELP_TEXT_COLOR_CHANGE_CYCLE_COUNT);
    helpTextPane = new ScrollPane();
    helpTextPane.getStyleClass().add("text-area-help");
    //helpTextPane.setPrefHeight(40d);
    helpTextPane.setPrefWidth(300d);
    helpTextPane.setEffect(helpTextEffect);
    helpText = new Label(RS.rbLabel(UGateUtil.HELP_TEXT_DEFAULT_KEY));
    helpText.setWrapText(true);
    helpText.setPrefWidth(helpTextPane.getPrefWidth() - 35d);
    helpText.textProperty().addListener(new ChangeListener<String>() {
      @Override
      public void changed(ObservableValue<? extends String> observable, String oldValue,
          String newValue) {
        helpTextTimeline.stop();
        if (newValue != null && newValue.length() > 0 &&
            !newValue.equals(RS.rbLabel(UGateUtil.HELP_TEXT_DEFAULT_KEY))) {
          helpTextTimeline.play();
        }
      }
    });
    helpTextPane.setContent(helpText);
    defaultUserImg = RS.imgView(RS.IMG_LOCK);
    defaultUserImg.setCursor(Cursor.HAND);
    defaultUserImg.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
      @Override
      public void handle(final MouseEvent event) {
        if (GuiUtil.isPrimaryPress(event)) {
          setDefaultActor(defaultUserImg.getImage() == RS
              .img(RS.IMG_LOCK) ? true : false, true);
        }
      }
    });
    addHelpTextTrigger(defaultUserImg, RS.rbLabel(KEY.APP_DIALOG_DEFAULT_USER));
 
    cnctStatusWireless = new StatusIcon(RS.imgView(RS.IMG_WIRELESS_ICON,
        CONNECTION_STATUS_SIZE, CONNECTION_STATUS_SIZE, true, true), GuiUtil.COLOR_OFF);
    addServiceBehavior(cnctStatusWireless, null, ServiceProvider.Type.WIRELESS, KEY.WIRELESS_CONNECT_DESC);
    cnctStatusWeb = new StatusIcon(RS.imgView(RS.IMG_WEB_ICON,
        CONNECTION_STATUS_SIZE, CONNECTION_STATUS_SIZE, true, true), GuiUtil.COLOR_OFF);
    addServiceBehavior(cnctStatusWeb, null, ServiceProvider.Type.WEB, KEY.WIRELESS_WEB_START_STOP_DESC);
    cnctStatusEmail = new StatusIcon(RS.imgView(RS.IMG_EMAIL_ICON, CONNECTION_STATUS_SIZE,
        CONNECTION_STATUS_SIZE, true, true), GuiUtil.COLOR_OFF);
    addServiceBehavior(cnctStatusEmail, null, ServiceProvider.Type.EMAIL, KEY.MAIL_CONNECT_DESC);
   
    // TODO : need to set camera resolution before calling Command.CAM_TAKE_PIC?
    final DropShadow ds = new DropShadow();
    final ImageView camTakeQvga = RS.imgView(RS.IMG_CAM_QVGA);
    addServiceBehavior(camTakeQvga, Command.CAM_TAKE_PIC, null, KEY.CAM_ACTION_QVGA);
    camTakeQvga.setEffect(ds);
    final ImageView camTakeVga = RS.imgView(RS.IMG_CAM_VGA);
    addServiceBehavior(camTakeVga, Command.CAM_TAKE_PIC, null, KEY.CAM_ACTION_VGA);
View Full Code Here

Examples of javafx.scene.effect.DropShadow

    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>() {
      @Override
      public void handle(final MouseEvent event) {
        if (event.getEventType() == MouseEvent.MOUSE_ENTERED) {
          effect.setColor(GuiUtil.COLOR_SELECTING);
        } else if (event.getEventType() == MouseEvent.MOUSE_EXITED) {
          effect.setColor(GuiUtil.COLOR_SELECTED);
        } else if (event.getEventType() == MouseEvent.MOUSE_CLICKED) {
          setHelpText(null);
        }
      }
    });
View Full Code Here

Examples of javafx.scene.effect.DropShadow

      beanPathAdapter.bindBidirectional(modelKeyFraction.getKey(), fractionProperty);
    }
       
    // create the image view
        imageView = icon;
    final DropShadow outerGlow = new DropShadow();
    outerGlow.setOffsetX(0);
    outerGlow.setOffsetY(0);
    outerGlow.setColor(Color.ORANGERED);
    outerGlow.setRadius(10d);
        imageView.setEffect(outerGlow);
       
        // add the views
    valueView = new HBox();
    gaugeDigits.getStyleClass().add("gauge");
View Full Code Here

Examples of javafx.scene.effect.DropShadow

      final Double newVal = Double.valueOf(val1 + "." + val2);
      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,
View Full Code Here

Examples of javafx.scene.effect.DropShadow

   * @param colorHex
   *            the hexadecimal {@linkplain Color}
   */
  protected void applyBarFillColorHex(final Node node, final String colorHex) {
    node.setStyle("-fx-bar-fill: " + colorHex + ";");
    final DropShadow ds = new DropShadow();
    ds.setOffsetX(3.0);
    ds.setOffsetY(3.0);
    final Lighting lighting = new Lighting();
    lighting.setSurfaceScale(1d);
    lighting.setLight(new Light.Distant());
    ds.setInput(lighting);
    node.setEffect(ds);
  }
View Full Code Here

Examples of javafx.scene.effect.DropShadow

    imgResToggleSwitch = new UGateToggleSwitchBox<>(
        controlBar.getRemoteNodePA(), RemoteNodeType.CAM_RESOLUTION,
        RS.IMG_CAM_TOGGLE_VGA, RS.IMG_CAM_TOGGLE_QVGA,
        RS.rbLabel(KEY.CAM_RES_VGA),
        RS.rbLabel(KEY.CAM_RES_QVGA));
    imgResToggleSwitch.getToggleItem().toggleSwitchImageView.setEffect(new DropShadow());
    controlBar.addHelpTextTrigger(imgResToggleSwitch, RS.rbLabel(KEY.CAM_RES_DESC));
    syncToggleSwitch = new UGateToggleSwitchBox<>(
        controlBar.getRemoteNodePA(), RemoteNodeType.DEVICE_AUTO_SYNCHRONIZE,
        RS.IMG_SYNC_ON, RS.IMG_SYNC_OFF);
    controlBar.addHelpTextTrigger(syncToggleSwitch, RS.rbLabel(KEY.WIRELESS_REMOTE_SYNC_DESC));
View Full Code Here

Examples of javafx.scene.effect.DropShadow

    node.setCache(true);
    node.setCacheHint(CacheHint.SPEED);
    node.setFitWidth(width);
    node.setFitHeight(height);

    final DropShadow effect = DropShadowBuilder.create().color(selectProperty != null && selectProperty.get() == index ? GuiUtil.COLOR_SELECTED : Color.TRANSPARENT).build();
    final Reflection effect2 = new Reflection();
    effect.setInput(effect2);
    node.setEffect(effect);
    node.setOnMousePressed(new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent event) {
        if (GuiUtil.isPrimaryPress(event)) {
          action.run();
        } else {
          controlBar.setHelpText(helpText);
        }
      }
    });
    node.setOnMouseEntered(new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent event) {
        if (selectProperty == null || selectProperty.get() != index) {
          effect.setColor(GuiUtil.COLOR_SELECTING);
        }
      }
    });
    node.setOnMouseExited(new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent event) {
        if (selectProperty == null || selectProperty.get() != index) {
          effect.setColor(Color.TRANSPARENT);
        } else if (selectProperty.get() == index) {
          effect.setColor(GuiUtil.COLOR_SELECTED);
        }
      }
    });
    if (selectProperty != null) {
      selectProperty.addListener(new ChangeListener<Number>() {
        @Override
        public void changed(final ObservableValue<? extends Number> observable, final Number oldValue, final Number newValue) {
          if (newValue.intValue() == index) {
            effect.setColor(GuiUtil.COLOR_SELECTED);
          } else {
            effect.setColor(Color.TRANSPARENT);
          }
        }
      });
    }
    return node;
View Full Code Here

Examples of javafx.scene.effect.DropShadow

      final ObjectProperty<Paint> backgroundFillProperty,
      final ObjectProperty<Paint> textFillProperty) {
    final StackPane valContainer = new StackPane();
    final Text val = new Text(getTickValueLabel(false));
    val.setFont(tickValueFont);
    final DropShadow outerGlow = new DropShadow();
    outerGlow.setOffsetX(0);
    outerGlow.setOffsetY(0);
    outerGlow.setColor(Color.BLUE);
    outerGlow.setRadius(2d);
    val.setEffect(outerGlow);
    Bindings.bindBidirectional(val.fillProperty(), textFillProperty);
    //val.setStyle("-fx-text-fill: white;");
    angleProperty.addListener(new ChangeListener<Number>() {
      @Override
View Full Code Here

Examples of javafx.scene.effect.DropShadow

 
  /**
   * @return the effect applied to the background
   */
  protected Effect createBackgroundEffect(final ObjectProperty<Color> fillProperty) {
    final DropShadow outerGlow = new DropShadow();
    outerGlow.setOffsetX(0);
    outerGlow.setOffsetY(0);
    Bindings.bindBidirectional(outerGlow.colorProperty(), outerRimEffectFillProperty);
    outerGlow.setRadius(5);
    return outerGlow;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.