com.vividsolutions.jump.util
Class Blackboard

java.lang.Object
  extended by com.vividsolutions.jump.util.Blackboard
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Blackboard
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

String-to-Object map that anyone can use. For example, the Options dialog has a single instance, and it's stored on the Workbench Blackboard.

See Also:
Serialized Form

Constructor Summary
Blackboard()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object get(java.lang.String key)
           
 boolean get(java.lang.String key, boolean defaultValue)
           
 double get(java.lang.String key, double defaultValue)
           
 int get(java.lang.String key, int defaultValue)
           
 java.lang.Object get(java.lang.String key, java.lang.Object defaultValue)
           
 boolean getBoolean(java.lang.String key)
           
 double getDouble(java.lang.String key)
           
 int getInt(java.lang.String key)
           
 java.util.HashMap getProperties()
          Used by Java2XML
 Blackboard put(java.lang.String key, boolean value)
           
 Blackboard put(java.lang.String key, double value)
           
 Blackboard put(java.lang.String key, int value)
           
 Blackboard put(java.lang.String key, java.lang.Object value)
           
 Blackboard putAll(java.util.Map properties)
           
 void setProperties(java.util.HashMap properties)
          Used by Java2XML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blackboard

public Blackboard()
Method Detail

getProperties

public java.util.HashMap getProperties()
Used by Java2XML


setProperties

public void setProperties(java.util.HashMap properties)
Used by Java2XML


put

public Blackboard put(java.lang.String key,
                      java.lang.Object value)

get

public java.lang.Object get(java.lang.String key)

put

public Blackboard put(java.lang.String key,
                      boolean value)

putAll

public Blackboard putAll(java.util.Map properties)

get

public boolean get(java.lang.String key,
                   boolean defaultValue)

getBoolean

public boolean getBoolean(java.lang.String key)

put

public Blackboard put(java.lang.String key,
                      int value)

put

public Blackboard put(java.lang.String key,
                      double value)

get

public double get(java.lang.String key,
                  double defaultValue)

get

public int get(java.lang.String key,
               int defaultValue)

getInt

public int getInt(java.lang.String key)

getDouble

public double getDouble(java.lang.String key)

get

public java.lang.Object get(java.lang.String key,
                            java.lang.Object defaultValue)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object