|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.Brush com.mindfusion.diagramming.GradientBrush
public class GradientBrush
Represents a gradient brush which paints the interior of objects starting with one color and gradually changing to another color by interpolating the RGB values of the two colors.
Constructor Summary | |
---|---|
GradientBrush()
Initializes a new instance of the GradientBrush class. |
|
GradientBrush(java.awt.Color color1,
java.awt.Color color2,
int angle)
Initializes a new instance of the GradientBrush class. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of the brush. |
int |
getAngle()
Gets the gradient orientation angle. |
java.awt.Color |
getColor1()
Gets the first gradient color. |
java.awt.Color |
getColor2()
Gets the second gradient color. |
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable. |
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GradientBrush(java.awt.Color color1, java.awt.Color color2, int angle)
GradientBrush
class.
color1
- A Color
object representing
the start color of the gradient.color2
- A Color
object representing
the end color of the gradient.angle
- An integer value specifying the gradient orientation.public GradientBrush()
GradientBrush
class.
Method Detail |
---|
public java.lang.Object clone()
clone
in class Brush
GradientBrush
instance.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.awt.Color getColor1()
Color
object representing the fill color.public java.awt.Color getColor2()
Color
object representing the fill color.public int getAngle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |