|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
StyleDescriptor elements combine various StyleItems.
These items are later applied to the dedicated GeometryDescriptor.
A StyleDescriptor lets you assign single StyleItem to
GeometryItem objects (it consists of lists of GeometryItems).
A StyleDescriptor consists of 3 attributes:
StyleItemsThe name of the descriptor is later used to identify the descriptor. Use a human-readable string to ease to the overall readability.
The type parameter defines the descriptor to be used. It must be one of
CompositeCompositeLineCompositeGroup
A minimum StyleDescriptor might look like this:
<!-- A Sample StyleItem used in the Descriptor -->
<list name="StyleItem">
<attribute name="Name" value="DefaultRectangleStyle"/>
<attribute name="Type" value="Rectangle"/>
<set name="Attributes">
<set name="Border"/>
<set name="Fill">
<attribute name="style" value="pattern"/>
<attribute name="foreground" type="Color" value="#FF01A1"/>
<attribute name="background" type="Color" value="darkorange"/>
<attribute name="patterntype" value="grey75"/>
</set>
</set>
</list>
<!-- the Descriptor -->
<list name="StyleDescriptor">
<attribute name="Name" value="CompanyRectangle"/>
<attribute name="Type" value="Composite"/>
<list name="StyleItems">
<attribute name="StyleItem" value="DefaultRectangleStyle"/>
</list>
</list>
| Field Summary | |
static int |
COMPOSITE_DESCRIPTOR
Constant to specify the type of the descriptor |
static int |
COMPOSITEGROUP_DESCRIPTOR
Constant to specify the type of the descriptor |
static int |
COMPOSITELABEL_DESCRIPTOR
Constant to specify the type of the descriptor |
static int |
COMPOSITELINE_DESCRIPTOR
Constant to specify the type of the descriptor |
static int |
COMPOSITESWIMLANE_DESCRIPTOR
Constant to specify the type of the descriptor |
static int |
COMPOSITETABLE_DESCRIPTOR
Constant to specify the type of the descriptor |
static int |
COMPOSITEVIEW_DESCRIPTOR
Constant to specify the type of the descriptor |
static int |
DESCRIPTOR_TYPE_MAX
Defines the highest possible integer constant used for the descriptor constants. |
static int |
GENERAL_DESCRIPTOR
Constant to specify the type of the descriptor |
| Method Summary | |
AttributeSet |
getAttributes()
Returns an AttributeSet that holds the various attributes of
this StyleDescriptor. |
java.lang.String |
getName()
Returns the name of this StyleDescriptor. |
int |
getType()
Returns the type of this StyleDescriptor. |
java.util.Iterator |
iteratorItems()
This method returns an iterator which steps over the StyleDescriptorItems provided by this
StyleDescriptor object. |
| Field Detail |
public static final int GENERAL_DESCRIPTOR
public static final int COMPOSITE_DESCRIPTOR
public static final int COMPOSITELINE_DESCRIPTOR
public static final int COMPOSITEGROUP_DESCRIPTOR
public static final int COMPOSITETABLE_DESCRIPTOR
public static final int COMPOSITESWIMLANE_DESCRIPTOR
public static final int COMPOSITELABEL_DESCRIPTOR
public static final int COMPOSITEVIEW_DESCRIPTOR
public static final int DESCRIPTOR_TYPE_MAX
| Method Detail |
public int getType()
StyleDescriptor.
StyleDescriptor.public java.lang.String getName()
StyleDescriptor.
StyleDescriptor.public AttributeSet getAttributes()
AttributeSet that holds the various attributes of
this StyleDescriptor. If no attributes are assigned to the
StyleDescriptor the return value is null.
AttributeSet holding the various attributes of
this StyleDescriptor or null.public java.util.Iterator iteratorItems()
StyleDescriptorItems provided by this
StyleDescriptor object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||