|
JGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgraph.components.labels.RichTextBusinessObject
User object with a dynamic set of properties in a hashtable. The property
under valueKey is used in toString() to represent the
object as a string. This object supports values of type
JGraphpadRichTextValue.
RichTextGraphModel,
Serialized Form| Field Summary | |
protected Map |
properties
Holds the properties as (key, value) pairs. |
static String |
valueKey
Key to use for converting this object to a string. |
| Constructor Summary | |
RichTextBusinessObject()
Constructs a business object with an empty string as its value. |
|
RichTextBusinessObject(Object value)
Constructs a business object with the specified value. |
|
| Method Summary | |
protected String |
chopString(String s,
int max)
A helper method that crops string to the specified length, adding 3 dots if there were more characters. |
Object |
clone()
Returns a clone of the object. |
Map |
getProperties()
Returns the properties. |
Object |
getProperty(Object key)
Returns the property under the specified key. |
String |
getTooltip()
Hook for subclassers to create a custom tooltip for this user object. |
Object |
getValue()
Returns the value for valueKey. |
boolean |
isComponent()
Returns true if the value is a component. |
boolean |
isRichText()
Returns true if the value is a rich text value. |
Object |
putProperty(Object key,
Object value)
Sets the property under the specified key. |
void |
setProperties(Map properties)
Sets the properties. |
void |
setValue(Object value)
Sets the value for valueKey. |
String |
toString()
Returns the string representation of the value or an empty string if no value exists. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static String valueKey
protected Map properties
| Constructor Detail |
public RichTextBusinessObject()
public RichTextBusinessObject(Object value)
value - The value of the new object.| Method Detail |
public Map getProperties()
public void setProperties(Map properties)
properties - The properties to set.public void setValue(Object value)
valueKey.
value - The value to set.public Object getValue()
valueKey.
public boolean isRichText()
public boolean isComponent()
public Object putProperty(Object key,
Object value)
key - They key of the property.value - The value of the property.
public Object getProperty(Object key)
key - The key of the property.
public String getTooltip()
JGraphpadGraph#getToolTipForCell(Object).
protected String chopString(String s,
int max)
public String toString()
public Object clone()
|
JGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||