net.infonode.properties.gui.util
public class ComponentProperties extends PropertyMapContainer
Version: $Revision: 1.17 $
Field Summary | |
---|---|
static ColorProperty | BACKGROUND_COLOR
Component background color. |
static BorderProperty | BORDER
Component border. |
static FontProperty | FONT
Component text font. |
static ColorProperty | FOREGROUND_COLOR
Component foreground color. |
static InsetsProperty | INSETS
Component insets inside the border. |
static PropertyMapGroup | PROPERTIES
Property group for all component properties. |
Constructor Summary | |
---|---|
ComponentProperties()
Creates an empty property object. | |
ComponentProperties(PropertyMap map)
Creates a property map containing the map.
| |
ComponentProperties(ComponentProperties inheritFrom)
Creates a property object that inherit values from another property object.
|
Method Summary | |
---|---|
ComponentProperties | addSuperObject(ComponentProperties properties)
Adds a super object from which property values are inherited.
|
void | applyTo(JComponent component)
Applies the property values to a component.
|
void | applyTo(JComponent component, Direction insetsDirection)
Applies the property values to a component and rotates the insets in the
given direction.
|
Color | getBackgroundColor()
Returns the component background color.
|
Border | getBorder()
Returns the component border.
|
Font | getFont()
Returns the component text font.
|
Color | getForegroundColor()
Returns the component foreground color.
|
Insets | getInsets()
Returns the component insets inside the border.
|
ComponentProperties | removeSuperObject()
Removes the last added super object.
|
ComponentProperties | removeSuperObject(ComponentProperties superObject)
Removes the given super object.
|
ComponentProperties | setBackgroundColor(Color color)
Sets the component background color.
|
ComponentProperties | setBorder(Border border)
Sets the component border.
|
ComponentProperties | setFont(Font font)
Sets the component text font.
|
ComponentProperties | setForegroundColor(Color foregroundColor)
Sets the component foreground color.
|
ComponentProperties | setInsets(Insets insets)
Sets the component insets inside the border.
|
Parameters: map the property map
Parameters: inheritFrom the object from which to inherit property values
Parameters: properties the object from which to inherit property values
Returns: this
Parameters: component the component on which to apply the property values
Parameters: component the component on which to apply the property values insetsDirection insets direction
Returns: the component background color
Returns: the component border
Returns: the component text font
Returns: the component foreground color
Returns: the component insets inside the border
Returns: this
Parameters: superObject super object to remove
Returns: this
Parameters: color the background color, null means no background
Returns: this
Parameters: border the component border
Returns: this
Parameters: font the component text font
Returns: this
Parameters: foregroundColor the component foreground color
Returns: this
Parameters: insets the component insets
Returns: this