|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--com.bbn.openmap.layer.link.LinkProperties
A LinkProperties object is a set of key-value strings that are going to be sent over the link. In java-land, they are handled with the Properties object. In link-land, they are handled like an array of strings. Requests have a properties section, and graphic objects have them as well.
| Field Summary | |
static LinkProperties |
EMPTY_PROPERTIES
Used by the graphics if no properties were sent with it. |
| Fields inherited from class java.util.Properties |
defaults |
| Constructor Summary | |
LinkProperties()
|
|
LinkProperties(java.io.DataInput dis)
Create a LinkProperties, and read it's contents off a link. |
|
LinkProperties(Link link)
Create a LinkProperties, and read it's contents off a link. |
|
LinkProperties(java.lang.String keyString,
java.lang.String valueString)
Create a LinkProperties object with it's first pair. |
|
| Method Summary | |
java.awt.Paint |
getFillPaint()
|
java.awt.Paint |
getPaint(java.lang.String paintProperty,
java.lang.String defaultPaintString)
|
java.awt.Stroke |
getStroke()
|
void |
read(java.io.DataInput dis)
Read the link to create the properties object. |
void |
setProperties(OMGraphic omg)
Method to call on the LinkProperties object to set the DrawingAttributes properties on an OMGraphic. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Calls the hashtable method put. |
void |
write(java.io.DataOutputStream dos)
Write the properties as several strings. |
void |
write(Link link)
Write the properties as several strings. |
| Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, store |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final LinkProperties EMPTY_PROPERTIES
| Constructor Detail |
public LinkProperties()
public LinkProperties(java.lang.String keyString,
java.lang.String valueString)
keyString - the key for the pair.valueString - the value for the pair.
public LinkProperties(Link link)
throws java.io.IOException
link - the Link to read properties from
IOException.
java.io.IOException
public LinkProperties(java.io.DataInput dis)
throws java.io.IOException
dis - DataInput to read from.
IOException.
java.io.IOException| Method Detail |
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
put. Provided to
provide a similar interface in jdk1.1.x or jdk1.2.x, enforcing
that only strings can be in properties files.
setProperty in class java.util.Properties
public void write(Link link)
throws java.io.IOException
link - the link to write to.
java.io.IOException
public void write(java.io.DataOutputStream dos)
throws java.io.IOException
dos - the DataOutputStream to write to.
java.io.IOException
public void read(java.io.DataInput dis)
throws java.io.IOException
dis - DataInput to read from.
IOException.
java.io.IOExceptionpublic void setProperties(OMGraphic omg)
public java.awt.Stroke getStroke()
public java.awt.Paint getPaint(java.lang.String paintProperty,
java.lang.String defaultPaintString)
public java.awt.Paint getFillPaint()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||