de.laures.cewolf.taglib.tags
Class SerializableGradientPaint

java.lang.Object
  extended by de.laures.cewolf.taglib.tags.SerializableGradientPaint
All Implemented Interfaces:
Paint, Transparency, Serializable

public class SerializableGradientPaint
extends Object
implements Paint, Serializable

Special gradient paint which can be serialized.

Author:
Guido Laures
See Also:
GradientPaint, Serialized Form

Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
SerializableGradientPaint()
           
SerializableGradientPaint(int x1, int y1, Color c1, int x2, int y2, Color c2)
          Creates a new instance of SerializableGradientPaint
 
Method Summary
 PaintContext createContext(ColorModel colorModel, Rectangle rectangle, Rectangle2D rectangle2D, AffineTransform affineTransform, RenderingHints renderingHints)
           
 int getTransparency()
           
 void setCyclic(boolean b)
           
 void setPoint1(int x, int y, Color c)
           
 void setPoint2(int x, int y, Color c)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableGradientPaint

public SerializableGradientPaint()

SerializableGradientPaint

public SerializableGradientPaint(int x1,
                                 int y1,
                                 Color c1,
                                 int x2,
                                 int y2,
                                 Color c2)
Creates a new instance of SerializableGradientPaint

Method Detail

setPoint1

public void setPoint1(int x,
                      int y,
                      Color c)

setPoint2

public void setPoint2(int x,
                      int y,
                      Color c)

createContext

public PaintContext createContext(ColorModel colorModel,
                                  Rectangle rectangle,
                                  Rectangle2D rectangle2D,
                                  AffineTransform affineTransform,
                                  RenderingHints renderingHints)
Specified by:
createContext in interface Paint

getTransparency

public int getTransparency()
Specified by:
getTransparency in interface Transparency

setCyclic

public void setCyclic(boolean b)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.