Package javafx.scene.image

Examples of javafx.scene.image.ImageView.addEventHandler()


    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) {
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.