dip.world.variant.data
Class Symbol

java.lang.Object
  extended bydip.world.variant.data.Symbol

public class Symbol
extends java.lang.Object

A Symbol


Field Summary
static float IDENTITY_SCALE
          Default (identity) scale factor
 
Constructor Summary
Symbol(java.lang.String name, float scale, org.w3c.dom.Element svgData)
          Create a new Symbol.
 
Method Summary
 java.lang.String getName()
          Gets the Symbol name.
 float getScale()
          Returns the scaling factor (IDENTITY_SCALE is the default)
 org.w3c.dom.Element getSVGData()
          Returns the SVG group of symbol definition with an identical id attribute as the Symbol name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY_SCALE

public static final float IDENTITY_SCALE
Default (identity) scale factor

See Also:
Constant Field Values
Constructor Detail

Symbol

public Symbol(java.lang.String name,
              float scale,
              org.w3c.dom.Element svgData)
Create a new Symbol.

Scale value must be a positive non-zero floating-point value. A value of 1.0f (IDENTITY_SCALE) should be the default.

Method Detail

getName

public java.lang.String getName()
Gets the Symbol name.


getScale

public float getScale()
Returns the scaling factor (IDENTITY_SCALE is the default)


getSVGData

public org.w3c.dom.Element getSVGData()
Returns the SVG group of symbol definition with an identical id attribute as the Symbol name. This will return a (deep) cloned Element, and thus has no Parent set.



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