| com.jeta.forms.store.properties.JETAProperty com.jeta.forms.store.properties.effects.GradientProperty
BOTTOM_TOP | final public static int BOTTOM_TOP(Code) | | |
DOWN_LEFT | final public static int DOWN_LEFT(Code) | | |
DOWN_RIGHT | final public static int DOWN_RIGHT(Code) | | |
LEFT_RIGHT | final public static int LEFT_RIGHT(Code) | | |
RIGHT_LEFT | final public static int RIGHT_LEFT(Code) | | |
TOP_BOTTOM | final public static int TOP_BOTTOM(Code) | | Gradient direction constants.
|
UP_LEFT | final public static int UP_LEFT(Code) | | |
UP_RIGHT | final public static int UP_RIGHT(Code) | | |
VERSION | final public static int VERSION(Code) | | The version of this class
|
serialVersionUID | final static long serialVersionUID(Code) | | |
GradientProperty | public GradientProperty()(Code) | | Creates an unitialized GradientProperty instance
|
GradientProperty | public GradientProperty(ColorProperty start, ColorProperty end, int direction)(Code) | | Creates a GradientProperty instance with the specified
colors and direction
Parameters: start - the start color Parameters: end - the end color Parameters: direction - the direction of the gradient. |
createPainter | public Painter createPainter()(Code) | | PaintSupport implementation. Creates a painter that renders a linear
gradient using the attributes defined by this object.
|
getDirection | public int getDirection()(Code) | | Returns the direction of the gradient: valid values are: TOP_BOTTOM,
BOTTOM_TOP, LEFT_RIGHT, RIGHT_LEFT, UP_RIGHT, UP_LEFT, DOWN_RIGHT,
DOWN_LEFT
|
getEndColor | public ColorProperty getEndColor()(Code) | | Returns the end color for the gradient
the end color |
getMagnitude | public float getMagnitude()(Code) | | Returns the value that controls the rate of change from one color to the
next. The default value is 1.0f
|
getStartColor | public ColorProperty getStartColor()(Code) | | Returns the start color for the gradient
the start color |
setDirection | public void setDirection(int direction)(Code) | | Sets the direction of the gradient: valid values are: TOP_BOTTOM,
BOTTOM_TOP, LEFT_RIGHT, RIGHT_LEFT, UP_RIGHT, UP_LEFT, DOWN_RIGHT,
DOWN_LEFT
Parameters: direction - the direction |
setEndColor | public void setEndColor(ColorProperty c)(Code) | | Sets the end color for the gradient
Parameters: c - the end color |
setMagnitude | public void setMagnitude(float mag)(Code) | | Sets the value that controls the rate of change from the start color to
the end color. The default value is 1.0f
Parameters: mag - the magnitude. |
setStartColor | public void setStartColor(ColorProperty c)(Code) | | Sets the start color for the gradient
Parameters: c - the start color |
setValue | public void setValue(Object prop)(Code) | | Sets this property to that of another GradientProperty
Parameters: prop - a GradientProperty instance |
toString | public String toString()(Code) | | a string representation of this proprety |
updateBean | public void updateBean(JETABean jbean)(Code) | | Updates the bean. Gets the underlying Java bean component associated with
this property and if that component implements the Paintable interface,
sets the background painter.
|
Fields inherited from com.jeta.forms.store.properties.JETAProperty | final public static int VERSION(Code)(Java Doc)
|
|
|