|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
com.panayotis.gnuplot.PropertiesHolder
public class PropertiesHolder
This object is a data placeholder of various text-based parameters, used in JavaPlot
graph objects.
It is possible to retrieve all it's data, as long a valid key-value pair is present.
| Field Summary | |
|---|---|
protected static java.lang.String |
NL
|
| Constructor Summary | |
|---|---|
PropertiesHolder()
Creates a new instance of PropertiesHolder with default prefix and suffix values. The prefix in this case is the token "set " and the suffix is the newline character. |
|
PropertiesHolder(java.lang.String prefix,
java.lang.String suffix)
Creates a new instance of PropertiesHolder with given prefix and suffix tokens. |
|
| Method Summary | |
|---|---|
void |
appendProperties(java.lang.StringBuffer bf)
Retrieve the list of the stored key-value pairs in this object. |
void |
set(java.lang.String key)
Set a specific key to this object, without a value |
void |
set(java.lang.String key,
java.lang.String value)
Add a specific key-value pair to this object. |
void |
unset(java.lang.String key)
Remove a key from this object |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
protected static final java.lang.String NL
| Constructor Detail |
|---|
public PropertiesHolder()
public PropertiesHolder(java.lang.String prefix,
java.lang.String suffix)
prefix - The prefix to usesuffix - The suffix to use.| Method Detail |
|---|
public void set(java.lang.String key,
java.lang.String value)
key - The key to usevalue - The value of the specified parameter.public void set(java.lang.String key)
key - The key to add to this objectpublic void unset(java.lang.String key)
key - The key to be removedpublic void appendProperties(java.lang.StringBuffer bf)
bf - The StringBuffer to store the representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||