Package net.infonode.properties.gui.util
Class ShapedPanelProperties
- java.lang.Object
-
- net.infonode.properties.propertymap.PropertyMapContainer
-
- net.infonode.properties.gui.util.ShapedPanelProperties
-
public class ShapedPanelProperties extends PropertyMapContainer
Properties and property values for a shaped panel, which is a panel that can have aShapedBorderand aComponentPainter.
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanPropertyCLIP_CHILDRENIf true the child components of the shaped panel are clipped with the border shape.static ComponentPainterPropertyCOMPONENT_PAINTERComponentPainterthat paints the shaped panel background.static DirectionPropertyDIRECTIONThe direction of the shaped panel.static BooleanPropertyHORIZONTAL_FLIPIf true the shaped panel is flipped horizontally.static BooleanPropertyOPAQUEIf true the shaped panel is opaque.static PropertyMapGroupPROPERTIESProperty group for all shaped panel properties.static BooleanPropertyVERTICAL_FLIPIf true the shaped panel is flipped vertically.
-
Constructor Summary
Constructors Constructor Description ShapedPanelProperties()Creates an empty property object.ShapedPanelProperties(ShapedPanelProperties inheritFrom)Creates a property object that inherit values from another property object.ShapedPanelProperties(PropertyMap map)Creates a property map containing the map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapedPanelPropertiesaddSuperObject(ShapedPanelProperties properties)Adds a super object from which property values are inherited.booleangetClipChildren()Returns true the child components of the shaped panel are clipped with the border shape.ComponentPaintergetComponentPainter()Gets the painter that paints the shaped panel background.DirectiongetDirection()Gets the direction of the shaped panel.booleangetHorizontalFlip()Returns true if the shaped panel is flipped horizontally.booleangetOpaque()Returns true if the shaped panel should be opaque.booleangetVerticalFlip()Returns true if the shaped panel is flipped vertically.ShapedPanelPropertiesremoveSuperObject()Removes the last added super object.ShapedPanelPropertiesremoveSuperObject(ShapedPanelProperties superObject)Removes the given super object.ShapedPanelPropertiessetClipChildren(boolean clipChildren)Set to true if the child components of the shaped panel should be clipped with the border shape.ShapedPanelPropertiessetComponentPainter(ComponentPainter painter)Sets the painter that paints the shaped panel background.ShapedPanelPropertiessetDirection(Direction direction)Sets the direction of the shaped panel.ShapedPanelPropertiessetHorizontalFlip(boolean flip)Set to true if the shaped panel should be flipped horizontally.ShapedPanelPropertiessetOpaque(boolean opaque)Set to true if the shaped panel should be opaque.ShapedPanelPropertiessetVerticalFlip(boolean flip)Set to true if the shaped panel should be flipped vertically.-
Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
-
-
-
Field Detail
-
PROPERTIES
public static final PropertyMapGroup PROPERTIES
Property group for all shaped panel properties.
-
OPAQUE
public static final BooleanProperty OPAQUE
If true the shaped panel is opaque.- Since:
- ITP 1.4.0
-
HORIZONTAL_FLIP
public static final BooleanProperty HORIZONTAL_FLIP
If true the shaped panel is flipped horizontally. Used byComponentPainter's,ShapedBorder's etc.
-
VERTICAL_FLIP
public static final BooleanProperty VERTICAL_FLIP
If true the shaped panel is flipped vertically. Used byComponentPainter's,ShapedBorder's etc.
-
CLIP_CHILDREN
public static final BooleanProperty CLIP_CHILDREN
If true the child components of the shaped panel are clipped with the border shape.
-
COMPONENT_PAINTER
public static final ComponentPainterProperty COMPONENT_PAINTER
ComponentPainterthat paints the shaped panel background.
-
DIRECTION
public static final DirectionProperty DIRECTION
The direction of the shaped panel. Used byComponentPainter's,ShapedBorder's etc.
-
-
Constructor Detail
-
ShapedPanelProperties
public ShapedPanelProperties()
Creates an empty property object.
-
ShapedPanelProperties
public ShapedPanelProperties(PropertyMap map)
Creates a property map containing the map.- Parameters:
map- the property map
-
ShapedPanelProperties
public ShapedPanelProperties(ShapedPanelProperties inheritFrom)
Creates a property object that inherit values from another property object.- Parameters:
inheritFrom- the object from which to inherit property values
-
-
Method Detail
-
addSuperObject
public ShapedPanelProperties addSuperObject(ShapedPanelProperties properties)
Adds a super object from which property values are inherited.- Parameters:
properties- the object from which to inherit property values- Returns:
- this
-
removeSuperObject
public ShapedPanelProperties removeSuperObject()
Removes the last added super object.- Returns:
- this
-
removeSuperObject
public ShapedPanelProperties removeSuperObject(ShapedPanelProperties superObject)
Removes the given super object.- Parameters:
superObject- super object to remove- Returns:
- this
-
setOpaque
public ShapedPanelProperties setOpaque(boolean opaque)
Set to true if the shaped panel should be opaque.- Parameters:
opaque- true for opaque, otherwise false- Since:
- ITP 1.4.0
-
getOpaque
public boolean getOpaque()
Returns true if the shaped panel should be opaque.- Returns:
- true for opaque, otherwise false
- Since:
- ITP 1.4.0
-
setHorizontalFlip
public ShapedPanelProperties setHorizontalFlip(boolean flip)
Set to true if the shaped panel should be flipped horizontally. Used byComponentPainter's,ShapedBorder's etc.- Parameters:
flip- true if the shaped panel should be flipped vertically- Returns:
- this
-
getHorizontalFlip
public boolean getHorizontalFlip()
Returns true if the shaped panel is flipped horizontally. Used byComponentPainter's,ShapedBorder's etc.- Returns:
- true if the shaped panel is flipped horizontally
-
setVerticalFlip
public ShapedPanelProperties setVerticalFlip(boolean flip)
Set to true if the shaped panel should be flipped vertically. Used byComponentPainter's,ShapedBorder's etc.- Parameters:
flip- true if the shaped panel should be flipped horizontally- Returns:
- this
-
getVerticalFlip
public boolean getVerticalFlip()
Returns true if the shaped panel is flipped vertically. Used byComponentPainter's,ShapedBorder's etc.- Returns:
- true if the shaped panel is flipped vertically
-
setClipChildren
public ShapedPanelProperties setClipChildren(boolean clipChildren)
Set to true if the child components of the shaped panel should be clipped with the border shape.- Parameters:
clipChildren- true if the child components of the shaped panel should be clipped with the border shape- Returns:
- this
-
getClipChildren
public boolean getClipChildren()
Returns true the child components of the shaped panel are clipped with the border shape.- Returns:
- true the child components of the shaped panel are clipped with the border shape
-
setComponentPainter
public ShapedPanelProperties setComponentPainter(ComponentPainter painter)
Sets the painter that paints the shaped panel background.- Parameters:
painter- the painter that paints the shaped panel background, null for none- Returns:
- this
-
getComponentPainter
public ComponentPainter getComponentPainter()
Gets the painter that paints the shaped panel background.- Returns:
- the painter that paints the shaped panel background, null if none
-
setDirection
public ShapedPanelProperties setDirection(Direction direction)
Sets the direction of the shaped panel. Used byComponentPainter's,ShapedBorder's etc.- Parameters:
direction- the direction of the shaped panel- Returns:
- this
-
getDirection
public Direction getDirection()
Gets the direction of the shaped panel. Used byComponentPainter's,ShapedBorder's etc.- Returns:
- the direction of the shaped panel
-
-