Package net.infonode.properties.gui.util
Class ShapedPanelProperties
java.lang.Object
net.infonode.properties.propertymap.PropertyMapContainer
net.infonode.properties.gui.util.ShapedPanelProperties
Properties and property values for a shaped panel, which is a panel that can have a
ShapedBorder
and a ComponentPainter
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanProperty
If true the child components of the shaped panel are clipped with the border shape.static final ComponentPainterProperty
ComponentPainter
that paints the shaped panel background.static final DirectionProperty
The direction of the shaped panel.static final BooleanProperty
If true the shaped panel is flipped horizontally.static final BooleanProperty
If true the shaped panel is opaque.static final PropertyMapGroup
Property group for all shaped panel properties.static final BooleanProperty
If true the shaped panel is flipped vertically. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty property object.ShapedPanelProperties
(ShapedPanelProperties inheritFrom) Creates a property object that inherit values from another property object.Creates a property map containing the map. -
Method Summary
Modifier and TypeMethodDescriptionaddSuperObject
(ShapedPanelProperties properties) Adds a super object from which property values are inherited.boolean
Returns true the child components of the shaped panel are clipped with the border shape.Gets the painter that paints the shaped panel background.Gets the direction of the shaped panel.boolean
Returns true if the shaped panel is flipped horizontally.boolean
Returns true if the shaped panel should be opaque.boolean
Returns true if the shaped panel is flipped vertically.Removes the last added super object.removeSuperObject
(ShapedPanelProperties superObject) Removes the given super object.setClipChildren
(boolean clipChildren) Set to true if the child components of the shaped panel should be clipped with the border shape.setComponentPainter
(ComponentPainter painter) Sets the painter that paints the shaped panel background.setDirection
(Direction direction) Sets the direction of the shaped panel.setHorizontalFlip
(boolean flip) Set to true if the shaped panel should be flipped horizontally.setOpaque
(boolean opaque) Set to true if the shaped panel should be opaque.setVerticalFlip
(boolean flip) Set to true if the shaped panel should be flipped vertically.Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
Field Details
-
PROPERTIES
Property group for all shaped panel properties. -
OPAQUE
If true the shaped panel is opaque.- Since:
- ITP 1.4.0
-
HORIZONTAL_FLIP
If true the shaped panel is flipped horizontally. Used byComponentPainter
's,ShapedBorder
's etc. -
VERTICAL_FLIP
If true the shaped panel is flipped vertically. Used byComponentPainter
's,ShapedBorder
's etc. -
CLIP_CHILDREN
If true the child components of the shaped panel are clipped with the border shape. -
COMPONENT_PAINTER
ComponentPainter
that paints the shaped panel background. -
DIRECTION
The direction of the shaped panel. Used byComponentPainter
's,ShapedBorder
's etc.
-
-
Constructor Details
-
ShapedPanelProperties
public ShapedPanelProperties()Creates an empty property object. -
ShapedPanelProperties
Creates a property map containing the map.- Parameters:
map
- the property map
-
ShapedPanelProperties
Creates a property object that inherit values from another property object.- Parameters:
inheritFrom
- the object from which to inherit property values
-
-
Method Details
-
addSuperObject
Adds a super object from which property values are inherited.- Parameters:
properties
- the object from which to inherit property values- Returns:
- this
-
removeSuperObject
Removes the last added super object.- Returns:
- this
-
removeSuperObject
Removes the given super object.- Parameters:
superObject
- super object to remove- Returns:
- this
-
setOpaque
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
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
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
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
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
Gets the painter that paints the shaped panel background.- Returns:
- the painter that paints the shaped panel background, null if none
-
setDirection
Sets the direction of the shaped panel. Used byComponentPainter
's,ShapedBorder
's etc.- Parameters:
direction
- the direction of the shaped panel- Returns:
- this
-
getDirection
Gets the direction of the shaped panel. Used byComponentPainter
's,ShapedBorder
's etc.- Returns:
- the direction of the shaped panel
-