Package java.awt

Examples of java.awt.Graphics.fillPolygon()


            plus(gFill);
            cross(gFill);
            break;
        case Constants.PS_TRIANGLEDOWN:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {0, getWidth(), getWidth() / 2}, // X points
                    new int[] {0, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLELEFT:
View Full Code Here


                    new int[] {0, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLELEFT:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {0, getWidth(), getWidth()}, // X points
                    new int[] {getHeight() / 2, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLERIGHT:
View Full Code Here

                    new int[] {0, getWidth(), getWidth()}, // X points
                    new int[] {getHeight() / 2, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLERIGHT:
            gFill.fillPolygon(
                    new int[] {0, getWidth(), 0}, // X points
                    new int[] {0, getHeight() / 2, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLEUP:
View Full Code Here

                    new int[] {0, getHeight() / 2, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLEUP:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {getWidth(), getWidth() / 2, 0}, // X points
                    new int[] {getHeight(), 0, getHeight()}, // Y points
                    3);
            break;
        }
View Full Code Here

            gFill.setColor( this.getForeground() );
            cross(gFill);
            break;
        case Constants.PS_DIAMOND:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {getWidth() / 2, getWidth(), getWidth() / 2, 0}, // X points
                    new int[] {0, getHeight() / 2, getHeight(), getHeight() / 2}, // Y points
                    4);
            break;
        case Constants.PS_PIXEL:
View Full Code Here

            plus(gFill);
            cross(gFill);
            break;
        case Constants.PS_TRIANGLEDOWN:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {0, getWidth(), getWidth() / 2}, // X points
                    new int[] {0, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLELEFT:
View Full Code Here

                    new int[] {0, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLELEFT:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {0, getWidth(), getWidth()}, // X points
                    new int[] {getHeight() / 2, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLERIGHT:
View Full Code Here

                    new int[] {0, getWidth(), getWidth()}, // X points
                    new int[] {getHeight() / 2, 0, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLERIGHT:
            gFill.fillPolygon(
                    new int[] {0, getWidth(), 0}, // X points
                    new int[] {0, getHeight() / 2, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLEUP:
View Full Code Here

                    new int[] {0, getHeight() / 2, getHeight()}, // Y points
                    3);
            break;
        case Constants.PS_TRIANGLEUP:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {getWidth(), getWidth() / 2, 0}, // X points
                    new int[] {getHeight(), 0, getHeight()}, // Y points
                    3);
            break;
        }
View Full Code Here

            gFill.setColor( this.getForeground() );
            cross(gFill);
            break;
        case Constants.PS_DIAMOND:
            gFill.setColor( this.getForeground() );
            gFill.fillPolygon(
                    new int[] {getWidth() / 2, getWidth(), getWidth() / 2, 0}, // X points
                    new int[] {0, getHeight() / 2, getHeight(), getHeight() / 2}, // Y points
                    4);
            break;
        case Constants.PS_PIXEL:
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.