public class RichTextBusinessObject extends Object implements Cloneable, Serializable
valueKey
is used in toString()
to represent the
object as a string. This object supports values of type
JGraphpadRichTextValue
.RichTextGraphModel
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Map |
properties
Holds the properties as (key, value) pairs.
|
static String |
valueKey
Key to use for converting this object to a string.
|
Constructor and Description |
---|
RichTextBusinessObject()
Constructs a business object with an empty string as its value.
|
RichTextBusinessObject(Object value)
Constructs a business object with the specified value.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static String valueKey
protected Map properties
public RichTextBusinessObject()
public RichTextBusinessObject(Object value)
value
- The value of the new object.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 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()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.