|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.gui.map.MapMetadata.SymbolSize
Textual width/height of a symbol, as valid SVG dimensions.
Constructor Summary | |
MapMetadata.SymbolSize(java.lang.String w,
java.lang.String h,
float scale,
org.w3c.dom.Element element)
Create a SymbolSize element Throws an exception if the value cannot be parsed, contains a "%" sign (cannot be relative), or, the units (if present) are different between the width and height attributes (e.g., "px" and "cm"). |
Method Summary | |
java.lang.String |
getHeight()
Get the Height |
java.lang.String |
getRadius()
Get the Radius of a circle centered over the width/height that will circumscribe width/height. |
float |
getRadius(float delta)
Computes a Radius given the known radius and a delta (smaller/larger). |
java.lang.String |
getRadiusString(float delta)
Returns the Radius as a String (formatted float + units) |
java.lang.String |
getUnits()
Gets the Units (never null, but may be empty). |
java.lang.String |
getWidth()
Get the Width |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapMetadata.SymbolSize(java.lang.String w, java.lang.String h, float scale, org.w3c.dom.Element element) throws MapException
Throws an exception if the value cannot be parsed, contains a "%" sign (cannot be relative), or, the units (if present) are different between the width and height attributes (e.g., "px" and "cm"). And numbers cannot be negative, either.
Method Detail |
public java.lang.String getWidth()
public java.lang.String getHeight()
public java.lang.String getRadius()
public java.lang.String getUnits()
public float getRadius(float delta)
public java.lang.String getRadiusString(float delta)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |