Package sun.java2d

Examples of sun.java2d.SunGraphics2D.drawLine()


            else
                g2d.setColor( Color.lightGray );

            final int lOff = i == 1 ? 0 : -1;
            if ( isHorizontal )
                g2d.drawLine(
                    (int)trackRect.getMinX() - lOff,
                    (int)trackRect.getCenterY() + i - 1,
                    (int)trackRect.getMaxX() + lOff,
                    (int)trackRect.getCenterY() + i - 1
                );
View Full Code Here


                    (int)trackRect.getCenterY() + i - 1,
                    (int)trackRect.getMaxX() + lOff,
                    (int)trackRect.getCenterY() + i - 1
                );
            else
                g2d.drawLine(
                    (int)trackRect.getCenterX() + i - 1,
                    (int)trackRect.getMinY() - lOff,
                    (int)trackRect.getCenterX() + i - 1,
                    (int)trackRect.getMaxY() + lOff
                );
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.