| |
|
| com.jeta.forms.store.properties.JETAProperty com.jeta.forms.store.properties.BorderProperty com.jeta.forms.store.properties.ShadowBorderProperty
ShadowBorderProperty | public class ShadowBorderProperty extends BorderProperty (Code) | | A ShadowBorderProperty defines the attributes needed to define
a shadow border for a component. The Swing library does not define a shadow
border, so one is defined in the forms code. See:
com.jeta.forms.components.border.ShadowBorder author: Jeff Tassin |
GRADIENT | final public static int GRADIENT(Code) | | |
SOLID | final public static int SOLID(Code) | | |
VERSION | final public static int VERSION(Code) | | The version for this class.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
ShadowBorderProperty | public ShadowBorderProperty()(Code) | | Creates an unitialized ShadowBorderProperty
|
ShadowBorderProperty | public ShadowBorderProperty(int type, int thickness, ColorProperty startColor, ColorProperty endColor, boolean symmetric)(Code) | | Creates a ShadowBorderProperty with the specified type,
thickness and colors.
Parameters: type - the type of shadow: SOLID or GRADIENT Parameters: thickness - the thickness of the border Parameters: startColor - the start color Parameters: endColor - the end color Parameters: symmetric - flag that indicates if the border is symmetric. |
createBorder | public Border createBorder(Component comp)(Code) | | BorderProperty implementation. Creates a ShadowBorder instance with the
attributes of this object.
a border instance that can be applied to any Swing component. |
getEndColor | public ColorProperty getEndColor()(Code) | | Returns the end color property for the border
the end color property |
getStartColor | public ColorProperty getStartColor()(Code) | | Returns the start color property for the border
the start color property |
getThickness | public int getThickness()(Code) | | Returns the thickness of the border.
the border thickness. |
getType | public int getType()(Code) | | Returns the type of shadow: SOLID or GRADIENT
the type of shadow. |
isSymmetric | public boolean isSymmetric()(Code) | | Returns the flag that indicates if the border takes up the same space on
the top/left as the bottom/right. If false, the border has zero padding
on the top and left sides.
the symmetric flag for this border. |
setEndColor | public void setEndColor(ColorProperty c)(Code) | | Sets the end color for the border. This only has an effect for GRADIENT
shadows.
Parameters: c - the end color for the border. |
setStartColor | public void setStartColor(ColorProperty c)(Code) | | Sets the start color for the border.
Parameters: c - the start color for the border |
setSymmetric | public void setSymmetric(boolean symmetric)(Code) | | Sets the flag that controls the border symmetry.
Parameters: symmetric - if true the border will have equal padding on the top/bottomand left/right |
setThickness | public void setThickness(int t)(Code) | | Sets the border thickness
Parameters: t - the border thickness |
setType | public void setType(int type)(Code) | | Sets the type of shadow for this border. Either SOLID or GRADIENT.
Parameters: type - the type of shadow |
setValue | public void setValue(Object prop)(Code) | | Sets this property to that of another ShadowBorderProperty
Parameters: prop - a ShadowBorderProperty instance. |
Fields inherited from com.jeta.forms.store.properties.JETAProperty | final public static int VERSION(Code)(Java Doc) final static long serialVersionUID(Code)(Java Doc)
|
|
|
|