|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.properties.propertymap.PropertyMapContainer net.infonode.properties.gui.util.ShapedPanelProperties
public class ShapedPanelProperties
Properties and property values for a shaped panel, which is a panel that can have a
ShapedBorder
and a ComponentPainter
.
Field Summary | |
---|---|
static BooleanProperty |
CLIP_CHILDREN
If true the child components of the shaped panel are clipped with the border shape. |
static ComponentPainterProperty |
COMPONENT_PAINTER
ComponentPainter that paints the shaped panel background. |
static DirectionProperty |
DIRECTION
The direction of the shaped panel. |
static BooleanProperty |
HORIZONTAL_FLIP
If true the shaped panel is flipped horizontally. |
static BooleanProperty |
OPAQUE
If true the shaped panel is opaque. |
static PropertyMapGroup |
PROPERTIES
Property group for all shaped panel properties. |
static BooleanProperty |
VERTICAL_FLIP
If true the shaped panel is flipped vertically. |
Constructor Summary | |
---|---|
ShapedPanelProperties()
Creates an empty property object. |
|
ShapedPanelProperties(PropertyMap map)
Creates a property map containing the map. |
|
ShapedPanelProperties(ShapedPanelProperties inheritFrom)
Creates a property object that inherit values from another property object. |
Method Summary | |
---|---|
ShapedPanelProperties |
addSuperObject(ShapedPanelProperties properties)
Adds a super object from which property values are inherited. |
boolean |
getClipChildren()
Returns true the child components of the shaped panel are clipped with the border shape. |
ComponentPainter |
getComponentPainter()
Gets the painter that paints the shaped panel background. |
Direction |
getDirection()
Gets the direction of the shaped panel. |
boolean |
getHorizontalFlip()
Returns true if the shaped panel is flipped horizontally. |
boolean |
getOpaque()
Returns true if the shaped panel should be opaque. |
boolean |
getVerticalFlip()
Returns true if the shaped panel is flipped vertically. |
ShapedPanelProperties |
removeSuperObject()
Removes the last added super object. |
ShapedPanelProperties |
removeSuperObject(ShapedPanelProperties superObject)
Removes the given super object. |
ShapedPanelProperties |
setClipChildren(boolean clipChildren)
Set to true if the child components of the shaped panel should be clipped with the border shape. |
ShapedPanelProperties |
setComponentPainter(ComponentPainter painter)
Sets the painter that paints the shaped panel background. |
ShapedPanelProperties |
setDirection(Direction direction)
Sets the direction of the shaped panel. |
ShapedPanelProperties |
setHorizontalFlip(boolean flip)
Set to true if the shaped panel should be flipped horizontally. |
ShapedPanelProperties |
setOpaque(boolean opaque)
Set to true if the shaped panel should be opaque. |
ShapedPanelProperties |
setVerticalFlip(boolean flip)
Set to true if the shaped panel should be flipped vertically. |
Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer |
---|
getMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PropertyMapGroup PROPERTIES
public static final BooleanProperty OPAQUE
public static final BooleanProperty HORIZONTAL_FLIP
ComponentPainter
's, ShapedBorder
's etc.
public static final BooleanProperty VERTICAL_FLIP
ComponentPainter
's, ShapedBorder
's etc.
public static final BooleanProperty CLIP_CHILDREN
public static final ComponentPainterProperty COMPONENT_PAINTER
ComponentPainter
that paints the shaped panel background.
public static final DirectionProperty DIRECTION
ComponentPainter
's, ShapedBorder
's etc.
Constructor Detail |
---|
public ShapedPanelProperties()
public ShapedPanelProperties(PropertyMap map)
map
- the property mappublic ShapedPanelProperties(ShapedPanelProperties inheritFrom)
inheritFrom
- the object from which to inherit property valuesMethod Detail |
---|
public ShapedPanelProperties addSuperObject(ShapedPanelProperties properties)
properties
- the object from which to inherit property values
public ShapedPanelProperties removeSuperObject()
public ShapedPanelProperties removeSuperObject(ShapedPanelProperties superObject)
superObject
- super object to remove
public ShapedPanelProperties setOpaque(boolean opaque)
opaque
- true for opaque, otherwise falsepublic boolean getOpaque()
public ShapedPanelProperties setHorizontalFlip(boolean flip)
ComponentPainter
's, ShapedBorder
's etc.
flip
- true if the shaped panel should be flipped vertically
public boolean getHorizontalFlip()
ComponentPainter
's, ShapedBorder
's etc.
public ShapedPanelProperties setVerticalFlip(boolean flip)
ComponentPainter
's, ShapedBorder
's etc.
flip
- true if the shaped panel should be flipped horizontally
public boolean getVerticalFlip()
ComponentPainter
's, ShapedBorder
's etc.
public ShapedPanelProperties setClipChildren(boolean clipChildren)
clipChildren
- true if the child components of the shaped panel should be clipped with the border shape
public boolean getClipChildren()
public ShapedPanelProperties setComponentPainter(ComponentPainter painter)
painter
- the painter that paints the shaped panel background, null for none
public ComponentPainter getComponentPainter()
public ShapedPanelProperties setDirection(Direction direction)
ComponentPainter
's, ShapedBorder
's etc.
direction
- the direction of the shaped panel
public Direction getDirection()
ComponentPainter
's, ShapedBorder
's etc.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |