Examples of drawChars()


Examples of java.awt.Graphics2D.drawChars()

            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2d.fill(area);
            if (this.drawColorNames) {
                final String goalColorShort = Board.getColorShortL10N(goal.robotNumber);
                g2d.setColor(Color.BLACK);
                g2d.drawChars(goalColorShort.toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

            g2d.setColor(outlineColor); g2d.draw(shapeFoot);
            g2d.setPaint(fillPaint);    g2d.fill(shapeBody);
            g2d.setColor(outlineColor); g2d.draw(shapeBody);
            if (this.drawColorNames) {
                g2d.setColor(Color.WHITE);
                g2d.drawChars(Board.getColorShortL10N(this.robot).toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

            g2d.setColor(outlineColor); g2d.draw(shapeFoot);
            g2d.setPaint(fillPaint);    g2d.fill(shapeBody);
            g2d.setColor(outlineColor); g2d.draw(shapeBody);
            if (this.drawColorNames) {
                g2d.setColor(Color.WHITE);
                g2d.drawChars(Board.getColorShortL10N(this.robot).toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2d.fill(area);
            if (this.drawColorNames) {
                final String goalColorShort = Board.getColorShortL10N(goal.robotNumber);
                g2d.setColor(Color.BLACK);
                g2d.drawChars(goalColorShort.toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

            g2d.setColor(outlineColor); g2d.draw(shapeFoot);
            g2d.setPaint(fillPaint);    g2d.fill(shapeBody);
            g2d.setColor(outlineColor); g2d.draw(shapeBody);
            if (this.drawColorNames) {
                g2d.setColor(Color.WHITE);
                g2d.drawChars(Board.getColorShortL10N(this.robot).toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2d.fill(area);
            if (this.drawColorNames) {
                final String goalColorShort = Board.getColorShortL10N(goal.robotNumber);
                g2d.setColor(Color.BLACK);
                g2d.drawChars(goalColorShort.toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

            g2d.setColor(outlineColor); g2d.draw(shapeFoot);
            g2d.setPaint(fillPaint);    g2d.fill(shapeBody);
            g2d.setColor(outlineColor); g2d.draw(shapeBody);
            if (this.drawColorNames) {
                g2d.setColor(Color.WHITE);
                g2d.drawChars(Board.getColorShortL10N(this.robot).toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

                    g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                    g2d.fill(area);
                    if (jcheckOptShowColorNames.isSelected()) {
                        final String goalColorShort = Board.getColorShortL10N(goal.robotNumber);
                        g2d.setColor(Color.BLACK);
                        g2d.drawChars(goalColorShort.toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
                        final String goalColorLong = Board.getColorLongL10N(goal.robotNumber);
                        this.setToolTipText(L10N.getString("txt.Goal.text") + " - " + goalColorLong + " - " + Board.getGoalShapeL10N(goal.shape));
                    }
                }
            }
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

                        g2d.setColor(outlineColor); g2d.draw(shapeFoot);
                        g2d.setPaint(fillPaint);    g2d.fill(shapeBody);
                        g2d.setColor(outlineColor); g2d.draw(shapeBody);
                        if (jcheckOptShowColorNames.isSelected()) {
                            g2d.setColor(Color.WHITE);
                            g2d.drawChars(Board.getColorShortL10N(i).toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
                            this.setToolTipText(L10N.getString("txt.Robot.text") + " - " + Board.getColorLongL10N(i));
                        }
                        break;
                    }
                }
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2d.fill(area);
            if (this.drawColorNames) {
                final String goalColorShort = Board.getColorShortL10N(goal.robotNumber);
                g2d.setColor(Color.BLACK);
                g2d.drawChars(goalColorShort.toCharArray(), 0, 1, width / 2 - 3, height / 2 + 3);
            }
            g2d.dispose();
        }

        @Override
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.