public class RenderedElement extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BOUNDS
A key for the 'bounds' property (the value is a
Shape). |
static java.lang.String |
TYPE
A key for the 'type' property.
|
| Constructor and Description |
|---|
RenderedElement(java.lang.Object type,
java.awt.Shape bounds)
Creates a new interactive element with the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearProperties()
Clears all properties for this element.
|
java.lang.Object |
getProperty(java.lang.String key)
Returns the value of the property with the specified key, or
null). |
java.lang.Object |
getType()
Returns the element type, as specified in the constructor.
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the value for a property.
|
java.lang.String |
toString()
Returns a string representation of the element, primarily for
debugging purposes.
|
public static final java.lang.String TYPE
public static final java.lang.String BOUNDS
Shape).public RenderedElement(java.lang.Object type, java.awt.Shape bounds)
type - the type (null not permitted).bounds - the bounds (null permitted).public java.lang.Object getType()
public java.lang.Object getProperty(java.lang.String key)
null).key - the key (null not permitted).public void setProperty(java.lang.String key, java.lang.Object value)
key - the property key (null not permitted).value - the property value.public void clearProperties()
public java.lang.String toString()
toString in class java.lang.Object