|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.svg.NonGeometricData
public class NonGeometricData
A set of data about a shape that doesn't fit into it's geometric configuration.
| Field Summary | |
|---|---|
static java.lang.String |
FILL
The fill type |
static java.lang.String |
ID
The ID of the figure |
static java.lang.String |
NONE
Value indicating that no settings has been specified |
static java.lang.String |
OPACITY
The alpha value for filling |
static java.lang.String |
STROKE
The stroke type |
static java.lang.String |
STROKE_DASHARRAY
The dash definition of the line to draw |
static java.lang.String |
STROKE_DASHOFFSET
The offset into the dash definition of the line to draw |
static java.lang.String |
STROKE_MITERLIMIT
The mitre of the line to draw |
static java.lang.String |
STROKE_OPACITY
The alpha value for drawing |
static java.lang.String |
STROKE_WIDTH
The width of the line to draw |
| Constructor Summary | |
|---|---|
NonGeometricData(java.lang.String metaData)
Create a set of non-geometric data for a figure |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String attribute,
java.lang.String value)
Add a configured style attribute into the data set |
Color |
getAsColor(java.lang.String attribute)
Get an attribute value converted to a color. |
float |
getAsFloat(java.lang.String attribute)
Get an attribute converted to a float value |
java.lang.String |
getAsReference(java.lang.String attribute)
Get the attribute value as a reference to another entity |
java.lang.String |
getAttribute(java.lang.String attribute)
Get the attribtue value for a given attribute |
java.lang.String |
getMetaData()
Get the meta data assigned to the figure. |
boolean |
isColor(java.lang.String attribute)
Check if a given attribute is in colour format |
boolean |
isFilled()
True if the shape is meant to be filled |
boolean |
isStroked()
True if the shape is meant to be outlined |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ID
public static final java.lang.String FILL
public static final java.lang.String STROKE
public static final java.lang.String OPACITY
public static final java.lang.String STROKE_WIDTH
public static final java.lang.String STROKE_MITERLIMIT
public static final java.lang.String STROKE_DASHARRAY
public static final java.lang.String STROKE_DASHOFFSET
public static final java.lang.String STROKE_OPACITY
public static final java.lang.String NONE
| Constructor Detail |
|---|
public NonGeometricData(java.lang.String metaData)
metaData - The meta data (either label or id) for the figure| Method Detail |
|---|
public void addAttribute(java.lang.String attribute,
java.lang.String value)
attribute - The attribute to addvalue - The value to assignpublic boolean isColor(java.lang.String attribute)
attribute - The attribute to check
public java.lang.String getMetaData()
public java.lang.String getAttribute(java.lang.String attribute)
attribute - The attribute whose value should be obtained
public Color getAsColor(java.lang.String attribute)
attribute - The attribute whose value should be interpreted as a color
public java.lang.String getAsReference(java.lang.String attribute)
attribute - The name of the attribute to retrieve
public float getAsFloat(java.lang.String attribute)
attribute - The attribute to retrieve
public boolean isFilled()
public boolean isStroked()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||