Class Blackboard
java.lang.Object
com.vividsolutions.jump.util.Blackboard
- All Implemented Interfaces:
Serializable, Cloneable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Warning : does not follow the clone contract (does not call super.clone()) but uses a copy consructor instead.booleanIf no value is yet defined for this key, map default value to the key in the blackboard and return it.doubleIf no value is yet defined for this key, map default value to the key in the blackboard and return it.intIf no value is yet defined for this key, map default value to the key in the blackboard and return it.booleangetBoolean(String key) Use getBoolean if you know that the value stored for key is an integer.doubleUse getDouble if you know that the value stored for key is a double.intUse getInt if you know that the value stored for key is an integer.Used by Java2XMLvoidsetProperties(HashMap<String, Object> properties) Used by Java2XML
-
Constructor Details
-
Blackboard
public Blackboard()
-
-
Method Details
-
getProperties
-
setProperties
-
put
-
get
-
put
-
putAll
-
get
If no value is yet defined for this key, map default value to the key in the blackboard and return it.- Parameters:
key- key of the value to retrievedefaultValue- default boolean value for this key- Returns:
- the value associated to the key or defaultValue if no value is yet defined for the key
-
getBoolean
Use getBoolean if you know that the value stored for key is an integer.- Parameters:
key- key of the value to retrieve- Returns:
- the boolean value associated with this key
-
put
-
put
-
remove
-
get
If no value is yet defined for this key, map default value to the key in the blackboard and return it.- Parameters:
key- key of the value to retrievedefaultValue- default double value for this key- Returns:
- the value associated to the key or defaultValue if no value is yet defined for the key
-
get
If no value is yet defined for this key, map default value to the key in the blackboard and return it.- Parameters:
key- key of the value to retrievedefaultValue- default integer value for this key- Returns:
- the value associated to the key or defaultValue if no value is yet defined for the key
-
getInt
Use getInt if you know that the value stored for key is an integer.- Parameters:
key- key of the value to retrieve- Returns:
- the integer value associated with this key
-
getDouble
Use getDouble if you know that the value stored for key is a double.- Parameters:
key- key of the value to retrieve- Returns:
- the double value associated with this key
-
get
-
clone
Warning : does not follow the clone contract (does not call super.clone()) but uses a copy consructor instead.
-