|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.bbn.openmap.layer.link.LinkProperties
public class 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. |
protected java.util.Hashtable |
renderAttributesCache
|
protected java.lang.Boolean |
reuseProperties
|
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(LinkProperties settings)
|
|
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.lang.Boolean |
getReuseProperties()
|
java.awt.Stroke |
getStroke()
|
static LinkProperties |
loadPropertiesIntoOMGraphic(java.io.DataInput dis,
OMGraphic omg,
LinkProperties propertiesBuffer)
New, static method for more efficient property handling and loading the properties into the OMGraphic. |
void |
read(java.io.DataInput dis)
Read the link to create the properties object. |
static LinkProperties |
read(java.io.DataInput dis,
LinkProperties props)
New, static method for more efficient property handling. |
void |
readArgs(int numArgs,
java.io.DataInput dis)
Read the link to fetch properties for this LinkProperties 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 |
setReuseProperties(java.lang.Boolean reuseProperties)
A flag that controls how LinkProperties are managed. |
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, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
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
protected java.lang.Boolean reuseProperties
protected java.util.Hashtable renderAttributesCache
Constructor Detail |
---|
public LinkProperties()
public LinkProperties(LinkProperties settings)
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
java.io.IOException
public LinkProperties(java.io.DataInput dis) throws java.io.IOException
dis
- DataInput to read from.
java.io.IOException
Method Detail |
---|
public java.lang.Boolean getReuseProperties()
public void setReuseProperties(java.lang.Boolean reuseProperties)
reuseProperties
- 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.
java.io.IOException
public void readArgs(int numArgs, java.io.DataInput dis) throws java.io.IOException
numArgs
- the number of key + value strings to read.dis
- DataInput to read from.
java.io.IOException
public static LinkProperties read(java.io.DataInput dis, LinkProperties props) throws java.io.IOException
dis
- props
-
java.io.IOException
public static LinkProperties loadPropertiesIntoOMGraphic(java.io.DataInput dis, OMGraphic omg, LinkProperties propertiesBuffer) throws java.io.IOException
dis
- omg
-
java.io.IOException
public 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 |