| com.jeta.forms.store.properties.JETAProperty com.jeta.forms.store.properties.BorderProperty
All known Subclasses: com.jeta.forms.store.properties.EtchedBorderProperty, com.jeta.forms.store.properties.ShadowBorderProperty, com.jeta.forms.store.properties.BevelBorderProperty, com.jeta.forms.store.properties.EmptyBorderProperty, com.jeta.forms.store.properties.DefaultBorderProperty, com.jeta.forms.store.properties.LineBorderProperty, com.jeta.forms.store.properties.CompoundBorderProperty, com.jeta.forms.store.properties.TitledBorderProperty,
BorderProperty | public class BorderProperty extends JETAProperty (Code) | | Base class for all border properties. Stores common border attributes.
author: Jeff Tassin |
Constructor Summary | |
public | BorderProperty() Creates an unitialized BorderProperty instance. |
PROPERTY_ID | final public static String PROPERTY_ID(Code) | | The name for this property.
|
VERSION | final public static int VERSION(Code) | | The version of this class.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
BorderProperty | public BorderProperty()(Code) | | Creates an unitialized BorderProperty instance.
|
createBorder | public Border createBorder(Component comp)(Code) | | Creates a Swing border instance based on the values in this
BorderProperty instance.
Parameters: comp - the component that is the basis for the border. This isnormally ignored except when assigning a default border on acomponent. The comp instance is used to obtains the defaultborder. a Swing border instance based on the values in thisBorderProperty instance. |
createTitle | public Border createTitle(Border b)(Code) | | Adds a title decoration to the given border. This method will add the
title only if isIncludeTitle() is true.
Parameters: b - the border to decorate with a title. a border instance with the given title decoration. |
equals | public boolean equals(Object object)(Code) | | Object equals implementation.
|
fromJustificationString | public static int fromJustificationString(String just)(Code) | | Returns the TitledBorder justification constant for the given string
representation
Parameters: just - the String representation of the TitledBorder justificationvalue. the TitleBorder justification value. The constants are defined inTitledBorder : LEFT CENTER RIGHT LEADING TRAILING DEFAULT_JUSTIFICATION |
fromPositionString | public static int fromPositionString(String pos)(Code) | | Returns the TitledBorder position constant for the given string
representation
Parameters: pos - the String representation of the TitledBorder position value. the TitleBorder position value. The constants are defined inTitledBorder : ABOVE_TOP BELOW_TOP TOP ABOVE_BOTTOM BOTTOM BELOW_BOTTOMN DEFAULT_POSITION |
getJustification | public int getJustification()(Code) | | Returns the title justification. isIncludeTitle() must
return true for this to have an effect.
the title justification. TitledBorder.LEFT, CENTER, RIGHT,LEADING, TRAILING, DEFAULT_JUSTICATION |
getPosition | public int getPosition()(Code) | | Returns the title position. isIncludeTitle() must return
true for this to have an effect.
the title positionTitledBorder.ABOVE_TOP,TOP,BELOW_TOP,ABOVE_BOTTOM,BOTTOM,BELOW_BOTTOM,DEFAULT_POSITION(top) |
getTextColor | public Color getTextColor()(Code) | | Returns the title text color. isIncludeTitle() must return
true for this to have an effect.
the color of the text in the title |
getTextColorProperty | public ColorProperty getTextColorProperty()(Code) | | Returns the color property for the title text.
the color property for the title text. |
getTextFont | public Font getTextFont()(Code) | | The title text font
the font of the title text. |
getTitle | public String getTitle()(Code) | | Return the text for this border's title. isIncludeTitle()
must return true for this to have an effect.
the text for the title |
isBottomPainted | public boolean isBottomPainted()(Code) | | Returns true if the bottom part of the border is painted. Currently, only
LineBorders support this capability.
true if the bottom part of the border is painted |
isIncludeTitle | public boolean isIncludeTitle()(Code) | | Returns true if this border has a title.
true if this border has a title |
isLeftPainted | public boolean isLeftPainted()(Code) | | Returns true if the left part of the border is painted. Currently, only
LineBorders support this capability.
true if the left part of the border is painted |
isRightPainted | public boolean isRightPainted()(Code) | | Returns true if the right part of the border is painted. Currently, only
LineBorders support this capability.
true if the right part of the border is painted |
isTopPainted | public boolean isTopPainted()(Code) | | Returns true if the top part of the border is painted. Currently, only
LineBorders support this capability.
true if the top part of the border is painted |
setBottomPainted | public void setBottomPainted(boolean bpaint)(Code) | | Set to true if the bottom part of the border is painted. False if the
bottom part of the border is not painted.
|
setIncludeTitle | public void setIncludeTitle(boolean includeTitle)(Code) | | Set the flag that indicates if this border has a title
|
setJustification | public void setJustification(int justification)(Code) | | Sets the title justification.
Parameters: justification - TitledBorder.LEFT, CENTER, RIGHT, LEADING, TRAILING,DEFAULT_JUSTICATION |
setLeftPainted | public void setLeftPainted(boolean bpaint)(Code) | | Set to true if the left part of the border is painted. False if the left
part of the border is not painted.
|
setPosition | public void setPosition(int position)(Code) | | Sets the title position
Parameters: position - TitledBorder.ABOVE_TOP,TOP,BELOW_TOP,ABOVE_BOTTOM,BOTTOM,BELOW_BOTTOM,DEFAULT_POSITION(top) |
setRightPainted | public void setRightPainted(boolean bpaint)(Code) | | Set to true if the right part of the border is painted. False if the
right part of the border is not painted.
|
setTextColorProperty | public void setTextColorProperty(ColorProperty c)(Code) | | Sets the title text color.
|
setTitle | public void setTitle(String title)(Code) | | Sets the text for the title.
Parameters: title - the title to set |
setTopPainted | public void setTopPainted(boolean bpaint)(Code) | | Set to true if the top part of the border is painted. False if the top
part of the border is not painted.
|
toJustificationString | public static String toJustificationString(int just)(Code) | | |
toPositionString | public static String toPositionString(int pos)(Code) | | |
Fields inherited from com.jeta.forms.store.properties.JETAProperty | final public static int VERSION(Code)(Java Doc) final static long serialVersionUID(Code)(Java Doc)
|
|
|