|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.Brush
com.mindfusion.diagramming.RadialGradientBrush
public class RadialGradientBrush
Represents a radial gradient brush.
Constructor Summary | |
---|---|
RadialGradientBrush()
Initializes a new instance of the RadialGradientBrush class. |
|
RadialGradientBrush(java.awt.Color centerColor,
java.awt.Color surroundingColor)
Initializes a new instance of the RadialGradientBrush class. |
|
RadialGradientBrush(java.awt.Color centerColor,
java.awt.Color surroundingColor,
double x,
double y)
Initializes a new instance of the RadialGradientBrush class. |
Method Summary | |
---|---|
void |
applyTo(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
|
java.lang.Object |
clone()
Creates a clone of the brush. |
java.awt.Color |
getCenterColor()
Gets the center color. |
java.awt.Color |
getSurroundingColor()
Gets the surrounding color. |
double |
getX()
Gets the relative x-coordinate of the center point. |
double |
getY()
Gets the relative y-coordinate of the center point. |
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable. |
void |
setCenterColor(java.awt.Color value)
Sets the center color. |
void |
setSurroundingColor(java.awt.Color value)
Sets the surrounding color. |
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 RadialGradientBrush(java.awt.Color centerColor, java.awt.Color surroundingColor)
RadialGradientBrush
class.
color1
- A Color
object representing
the color at the center point.color2
- A Color
object representing
the surrounding color.public RadialGradientBrush(java.awt.Color centerColor, java.awt.Color surroundingColor, double x, double y)
RadialGradientBrush
class.
color1
- A Color
object representing
the color at the center point.color2
- A Color
object representing
the surrounding color.x
- The relative x-coordinate of the center point.
Value 0.5 indicates the middle of the destiation rectangle.x
- The relative y-coordinate of the center point.
Value 0.5 indicates the middle of the destiation rectangle.public RadialGradientBrush()
RadialGradientBrush
class.
Method Detail |
---|
public void applyTo(java.awt.Graphics2D g, java.awt.geom.Rectangle2D bounds)
applyTo
in class Brush
public java.lang.Object clone()
clone
in class Brush
RadialGradientBrush
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 getCenterColor()
Color
object representing the center color.public void setCenterColor(java.awt.Color value)
public java.awt.Color getSurroundingColor()
Color
object representing the surrounding color.public void setSurroundingColor(java.awt.Color value)
public double getX()
public double getY()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |