Examples of RoundGradientPaint


Examples of CustomColorPicker.RoundGradientPaint

            g.setPaint( gp );
        
        }else
        if (modus==MODE_RADIAL)
        {
            RoundGradientPaint rgp = new RoundGradientPaint(p1.x,p1.y, withTransparency(color1,color1Transparency),
                new Point2D.Double(p2.x,p2.y), withTransparency(color2,color2Transparency));
            g.setPaint(rgp);
        }
       
    }
View Full Code Here

Examples of com.barrybecker4.ui.gradient.RoundGradientPaint

        Point pos = getPosition(position, cellSize, pieceSize, margin);
        Ellipse2D circle = new Ellipse2D.Float( pos.x, pos.y, pieceSize + 1, pieceSize + 1 );
        int hlOffset = (int) (pieceSize / 2.3 + 0.5)//spec highlight offset
        Color c = getPieceColor(planet);

        RoundGradientPaint rgp = new RoundGradientPaint(
                pos.x + hlOffset, pos.y + hlOffset, Color.white, SPEC_HIGHLIGHT_RADIUS, c );

        g2.setPaint( rgp );
        g2.fill( circle );
View Full Code Here

Examples of com.barrybecker4.ui.gradient.RoundGradientPaint

        int pieceSize = getPieceSize(cellSize, piece);
        Point pos = getPosition(position, cellSize, pieceSize, margin);
        Ellipse2D circle = new Ellipse2D.Float( pos.x, pos.y, pieceSize + 1, pieceSize + 1 );
        int hlOffset = (int) (pieceSize / 2.3 + 0.5)//spec highlight offset
        RoundGradientPaint rgp = new RoundGradientPaint(
                pos.x + hlOffset, pos.y + hlOffset, Color.white, SPEC_HIGHLIGHT_RADIUS, getPieceColor(piece) );

        g2.setPaint( rgp );
        g2.fill( circle );
View Full Code Here

Examples of com.barrybecker4.ui.gradient.RoundGradientPaint

    private void drawMarker(Graphics2D g2, PokerPlayerMarker playerMarker, int pieceSize, Point pos) {
        Ellipse2D circle = new Ellipse2D.Float( pos.x, pos.y, pieceSize + 1, pieceSize + 1 );
        int hlOffset = (int) (pieceSize / 2.3 + 0.5)//spec highlight offset
        Color c = getPieceColor(playerMarker);

        RoundGradientPaint rgp = new RoundGradientPaint(
                pos.x + hlOffset, pos.y + hlOffset, Color.white, SPEC_HIGHLIGHT_RADIUS, c );

        g2.setPaint( rgp );
        g2.fill( circle );
        if ( playerMarker.isHighlighted() ) {
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.