Package org.openbp.swing.draw

Examples of org.openbp.swing.draw.RadialGradientPaint


        if (cyclic)
        {
          // Create a radial gradient
          Point2D radius = new Point2D.Double(p2.getX() - p1.getX(), p2.getY() - p1.getY());
          paint = new RadialGradientPaint(p1, c1, radius, c2);
        }
        else
        {
          // Create a linear gradient
          paint = new GradientPaint(p1, c1, p2, c2, true);
View Full Code Here

TOP

Related Classes of org.openbp.swing.draw.RadialGradientPaint

Copyright © 2018 www.massapicom. 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.