Package javafx.scene.image

Examples of javafx.scene.image.Image


   */
  private void showTrump(String imgPath)
  {
    Insets insets = new Insets(5, 0, 5, 0);
   
    ImageView image = new ImageView(new Image(imgPath));
   
    GridPane.setMargin(image, insets);
    GridPane.setHalignment(image, HPos.CENTER);
   
    centerGrid.getChildren().clear();
View Full Code Here


    centerGrid.getChildren().clear();
    centerGrid.setAlignment(Pos.CENTER);
   
    playedCard = new ArrayList<ImageView>();
    for (int i = 0; i < 4; i++) {
      playedCard.add(new ImageView(new Image(
          "res\\cartes\\carte_inconnue.png")));
      if (i % 2 == 1)
        playedCard.get(i).setRotate(90);
    }
    centerGrid.add(playedCard.get(0), 1, 0);
View Full Code Here

   * @param fam Atout qui ne peut plus �tre choisi
   */
  private void otherTrumps(Family fam)
  {
    diamonds = new RadioButton();
    diamonds.setGraphic(new ImageView(new Image("res\\icones\\carreau_ico.png")));
    diamonds.setToggleGroup(trumpToggleGroup);
    diamonds.setOnAction(new TakeTrumpHandler());

    hearts = new RadioButton();
    hearts.setGraphic(new ImageView(new Image("res\\icones\\coeur_ico.png")));
    hearts.setToggleGroup(trumpToggleGroup);
    hearts.setOnAction(new TakeTrumpHandler());

    spades = new RadioButton();
    spades.setGraphic(new ImageView(new Image("res\\icones\\pique_ico.png")));
    spades.setToggleGroup(trumpToggleGroup);
    spades.setOnAction(new TakeTrumpHandler());

    clubs = new RadioButton();
    clubs.setGraphic(new ImageView(new Image("res\\icones\\trefle_ico.png")));
    clubs.setToggleGroup(trumpToggleGroup);
    clubs.setOnAction(new TakeTrumpHandler());
   
    switch(fam)
    {
View Full Code Here

              starter++;
            }
           
            for(Card c : game.getCarpet().getCards())
            {
              playCard(playPos[(starter - game.getCarpet().getCards().size() + 4)%4], new Image(c.getImg()));
              starter++;
            }
           
            if(game.getPacket().getCards().size() > 0)
            {
              Pack packet = game.getPacket();
              setFold(new ImageView(new Image(packet.getCards().get(packet.getCards().size() - 4).getImg())),
                  new ImageView(new Image(packet.getCards().get(packet.getCards().size() - 3).getImg())),
                  new ImageView(new Image(packet.getCards().get(packet.getCards().size() - 2).getImg())),
                  new ImageView(new Image(packet.getCards().get(packet.getCards().size() - 1).getImg())));
            }
           
            setTrump(game.getCurrentSet().getTrump());
          }
        }
View Full Code Here

                return null;
            }
        }

        static public ImageView getIcon(URL url) {
            return new ImageView(new Image(url.toString()));
        }
View Full Code Here

                return null;
            }
        }

        static public ImageView getIcon(URL url) {
            return new ImageView(new Image(url.toString()));
        }
View Full Code Here

                return null;
            }
        }

        static public ImageView getIcon(URL url) {
            return new ImageView(new Image(url.toString()));
        }
View Full Code Here

                return null;
            }
        }

        static public ImageView getIcon(URL url) {
            return new ImageView(new Image(url.toString()));
        }
View Full Code Here

        setState(State.CLOSED);
        mainMenuButton.setOpen(false);
    }

    private ImageView createThumbnail(final RadialMenuItem ITEM) {
        ImageView imageItem = new ImageView(new Image(ITEM.getThumbnailImageName()));
        imageItem.setFitWidth(ITEM.getSize() * 0.65);
        imageItem.setFitHeight(ITEM.getSize() * 0.65);
        imageItem.setMouseTransparent(true);

        return imageItem;
View Full Code Here

        );               
        return DESTINATION;
    }

    public ImageView getImageView(final double W, final double H, final Shape CLIP) {
        final Image IMAGE = getImage(W, H);
        final ImageView IMAGE_VIEW = new ImageView(IMAGE);
        IMAGE_VIEW.setClip(CLIP);
        return IMAGE_VIEW;
    }
View Full Code Here

TOP

Related Classes of javafx.scene.image.Image

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.