com.davisor.graphics.chart
Class ChartAttributesMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended bycom.davisor.graphics.chart.ChartAttributesMap
All Implemented Interfaces:
java.lang.Cloneable, com.davisor.core.Dupable, java.util.Map, java.io.Serializable

public class ChartAttributesMap
extends java.util.HashMap
implements com.davisor.core.Dupable

ChartAttributesMap is a map for storing ChartAttributes parsed from XML documents with the ChartXMLDocumentHandler.

See Also:
ChartXMLDocumentHandler, Serialized Form

Constructor Summary
ChartAttributesMap()
          Default constructor.
ChartAttributesMap(ChartAttributesMap cam, boolean deep)
          Deep or shallow copy constructor.
 
Method Summary
 java.lang.Object clone()
          Clones this map and puts references to the entries to the new one.
 com.davisor.core.Dupable dup()
          Duplicates the entries of this map to the new one.
 ChartAttributes getDefaults()
          Returns the default ChartAttributes, if available (the map is not empty).
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Puts the value into this map with the specified key.
 void putAll(java.util.Map t)
          Puts the values of the other map into this map with the specified keys.
 java.lang.String toString()
          Gets object XML string representation.
 
Methods inherited from class java.util.HashMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ChartAttributesMap

public ChartAttributesMap()
Default constructor.


ChartAttributesMap

public ChartAttributesMap(ChartAttributesMap cam,
                          boolean deep)
Deep or shallow copy constructor.

Parameters:
cam - the source map
deep - tells if ChartAttributes should be duplicated
Method Detail

clone

public java.lang.Object clone()
Clones this map and puts references to the entries to the new one.


dup

public com.davisor.core.Dupable dup()
Duplicates the entries of this map to the new one.

Specified by:
dup in interface com.davisor.core.Dupable

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Puts the value into this map with the specified key. Accepts only ChartAttributes as values.

Specified by:
put in interface java.util.Map
Parameters:
key - the key for mapping. If the key is null and the map is empty, the value becomes the default.
value - the ChartAttributes.
Returns:
a previous value associated with the key, or null if there was not a previous mapping, or if the value was not a ChartAttributes.

putAll

public void putAll(java.util.Map t)
Puts the values of the other map into this map with the specified keys. Only ChartAttributes from the map will be copied.

Specified by:
putAll in interface java.util.Map

toString

public java.lang.String toString()
Gets object XML string representation.


getDefaults

public ChartAttributes getDefaults()
Returns the default ChartAttributes, if available (the map is not empty).



Copyright © 2001-2004 Davisor Oy. All Rights Reserved.