org.netbeans.microedition.svg.meta
Class MetaData

java.lang.Object
  extended by java.util.Hashtable
      extended by org.netbeans.microedition.svg.meta.MetaData

public class MetaData
extends java.util.Hashtable

This class represents meta information for SVG component. This information consist of pair: key, value.


Field Summary
static java.lang.String DISPLAY
           
static java.lang.String METADATA
           
static java.lang.String NONE
           
static java.lang.String TRAIT_TEXT
           
 
Constructor Summary
MetaData()
           
 
Method Summary
 org.w3c.dom.svg.SVGElement getNestedElement()
          In some cases ( like "rect" and "circle" ) one needs to wrap them in "g" element for metadata usage .
 void loadFromElement(org.w3c.dom.svg.SVGElement element)
           
 
Methods inherited from class java.util.Hashtable
clear, contains, containsKey, elements, get, isEmpty, keys, put, rehash, remove, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

METADATA

public static final java.lang.String METADATA
See Also:
Constant Field Values

TRAIT_TEXT

public static final java.lang.String TRAIT_TEXT
See Also:
Constant Field Values

DISPLAY

public static final java.lang.String DISPLAY
See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
See Also:
Constant Field Values
Constructor Detail

MetaData

public MetaData()
Method Detail

loadFromElement

public void loadFromElement(org.w3c.dom.svg.SVGElement element)

getNestedElement

public org.w3c.dom.svg.SVGElement getNestedElement()
In some cases ( like "rect" and "circle" ) one needs to wrap them in "g" element for metadata usage . This method helps to avoid multiple navigation inside element. In described cases this method return exactly needed element because it single nested not "metadata" element.

Returns:
last nested not "metadata" element