dip.gui.map
Class MapMetadata.SymbolSize

java.lang.Object
  extended bydip.gui.map.MapMetadata.SymbolSize
Enclosing class:
MapMetadata

public static class MapMetadata.SymbolSize
extends java.lang.Object

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

MapMetadata.SymbolSize

public MapMetadata.SymbolSize(java.lang.String w,
                              java.lang.String h,
                              float scale,
                              org.w3c.dom.Element element)
                       throws MapException
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"). And numbers cannot be negative, either.

Method Detail

getWidth

public java.lang.String getWidth()
Get the Width


getHeight

public java.lang.String getHeight()
Get the Height


getRadius

public java.lang.String getRadius()
Get the Radius of a circle centered over the width/height that will circumscribe width/height.


getUnits

public java.lang.String getUnits()
Gets the Units (never null, but may be empty).


getRadius

public float getRadius(float delta)
Computes a Radius given the known radius and a delta (smaller/larger). Delta and Radius are assumed to have the same units.


getRadiusString

public java.lang.String getRadiusString(float delta)
Returns the Radius as a String (formatted float + units)



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.