Examples of color()


Examples of monopoly.model.personality.Player.color()

                c.insets = new Insets(5, 5, 5, 5);

                c.gridx = 0;
                c.gridy = 0;
                dialog.add(new JLabel("<html>"
                        + "Игрок <font color=" + HTMLColors.getName(p.color()) + ">"
                        + "\"" + p.name() + "\"</font>" + "остановился на ячейки"
                        + " являющейся фирмой <u>\"" + companyCell.name() + "\"</u>"
                        + " принадлежащей Банку.<br>"
                        + "Желаете приобрести указанную фирму за ее номинальную"
                        + " цену <i>" + companyCell.cost() + "$?</i>"
View Full Code Here

Examples of monopoly.model.personality.Player.color()

                dialog.setVisible(true);

                if (_canPlayerBuyLand == false) {
                    showSimpleDialogMessage("Недостаточно денежных средств",
                            "<html>"
                            + "Игроку <font color=" + HTMLColors.getName(p.color())
                            + ">\"" + p.name() + "\"</font> не хватило денежных "
                            + "средств для покупки фирмы <u>\"" + companyCell.name()
                            + "\"</u>.<br>Необходмо: <i>" + companyCell.cost()
                            + "$.</i><br>Имеется: <i>" + p.money() + "$.</i>"
                            + "</html>");
View Full Code Here

Examples of monopoly.model.personality.Player.color()

                if (owner instanceof Player) {
                    color = ((Player) owner).color();
                }

                infoDialog.add(new JLabel("<html>"
                        + "Игрок <font color=" + HTMLColors.getName(p.color()) + ">"
                        + "\"" + p.name() + "\"</font>" + "остановился на ячейки"
                        + " являющейся фирмой <u>\"" + companyCell.name() + "\"</u>"
                        + " и принадлежащей игроку <font color="
                        + HTMLColors.getName(color) + ">\"" + owner.name()
                        + "\"</font>.<br>"
View Full Code Here

Examples of monopoly.model.personality.Player.color()

                            if ("P1".equals(actionCommand)) {
                                dialog.setTitle("Игрок \"" + owner.name() + "\"");

                                questionLbl.setText("<html>"
                                        + "Игрок <font color="
                                        + HTMLColors.getName(p.color()) + ">\""
                                        + p.name() + "\"</font> предложил вам "
                                        + "продать свою фирму <u>\""
                                        + companyCell.name() + "\"</u>. Вы согласны?"
                                        + "</html>");
                                amountLbl.setText("Предложенная сумма ($):");
View Full Code Here

Examples of monopoly.model.personality.Player.color()

                    dialog.setVisible(true);

                    if (_canPlayerBuyLand == false) {
                        showSimpleDialogMessage("Недостаточно денежных средств",
                                "<html>"
                                + "Игроку <font color=" + HTMLColors.getName(p.color())
                                + ">\"" + p.name() + "\"</font> не хватило денежных "
                                + "средств для покупки фирмы <u>\"" + companyCell.name()
                                + "\"</u>.<br>Необходмо: <i>" + companyCell.cost()
                                + "$.</i><br>Имеется: <i>" + p.money() + "$.</i>"
                                + "</html>");
View Full Code Here

Examples of monopoly.model.personality.Player.color()

        c.insets = new Insets(5, 5, 5, 5);

        c.gridx = 0;
        c.gridy = 0;
        infoDialog.add(new JLabel("<html>"
                + "У игрока <font color=" + HTMLColors.getName(p.color()) + ">"
                + "\"" + p.name() + "\"</font>" + ", в связи с отсутсвием "
                + "денежных средств для уплаты, были конфискованы следующие "
                + "фирмы: "
                + "</html>"), c);
        List<String> companyNames = new ArrayList<String>();
View Full Code Here

Examples of monopoly.model.personality.Player.color()

     */
    public void gamePlayerFinishedGame(GameModelEvent e) {
        Player p = e.getPlayer();

        showSimpleDialogMessage("Банкрот", "<html>"
                + "Игрок <font color=" + HTMLColors.getName(p.color()) + ">"
                + "\"" + p.name() + "\"</font> не имеет денежных средств "
                + "для уплаты и закончил игру."
                + "</html>");

        PlayerChip chip = getPlayerChip(p);
View Full Code Here

Examples of monopoly.model.personality.Player.color()

     */
    public void gameFinished(GameModelEvent e) {
        Player p = e.getPlayer();

        showSimpleDialogMessage("Игра окончена", "<html>"
                + "Игрок <font color=" + HTMLColors.getName(p.color()) + ">"
                + "\"" + p.name() + "\"</font> стал монополистом и победил в игре."
                + "</html>");

        final JFrame mainWindow = this;
        final Dialog infoDialog = new JDialog();
View Full Code Here

Examples of monopoly.model.personality.Player.color()

        if (owner instanceof Player) {
            Player p = (Player) owner;

            Graphics2D g2d = (Graphics2D) g;
            GradientPaint gp = new GradientPaint(x, y, Color.WHITE,
                    x, CELL_HEIGHT, p.color().darker());
            g2d.setPaint(gp);
            g2d.fillRect(1, y + 1, CELL_WIDTH - 2, (CELL_HEIGHT - y) - 2);
        }

        super.paintChildren(g);
View Full Code Here

Examples of org.geotools.styling.builder.ColorMapEntryBuilder.color()

    ColorMapImpl colorMap = new ColorMapImpl();
    colorMap.setType(ColorMapImpl.TYPE_VALUES);

    for (ColorEntry c : colors){
      ColorMapEntryBuilder cme = new ColorMapEntryBuilder();
      ColorMapEntry e = cme.color(c.getColor()).opacity(c.getOpacity()).quantity(formatter.formatNumber(c.getValue())).build();
      if (c.getLabel() != null && !c.getLabel().trim().isEmpty()){
        e.setLabel(c.getLabel());
      }
      colorMap.addColorMapEntry(e);
    }
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.