|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
O - The type of object being depicted.public interface Depictor<O extends DepictedObject>
A strategy for depicting objects on some platform.
| Field Summary | |
|---|---|
static java.lang.String |
GENERAL_PROPERTY
The property indicating general depicted object changes. |
| Method Summary | |
|---|---|
void |
depict()
Updates the depiction of the object. |
DepictContext |
getDepictContext()
Retrieves information and functionality related to the current depiction on the platform. |
O |
getDepictedObject()
|
Platform |
getPlatform()
|
GuiseSession |
getSession()
|
void |
installed(O depictedObject)
Called when the depictor is installed in a depicted object. |
boolean |
isDepicted()
|
void |
processEvent(PlatformEvent event)
Processes an event from the platform. |
void |
setDepicted(boolean newDepicted)
Changes the depictor's updated status. |
void |
uninstalled(O depictedObject)
Called when the depictor is uninstalled from a depicted object. |
| Field Detail |
|---|
static final java.lang.String GENERAL_PROPERTY
| Method Detail |
|---|
GuiseSession getSession()
Platform getPlatform()
DepictContext getDepictContext()
Platform.getDepictContext().
java.lang.IllegalStateException - if no depict context can be returned in the current depiction state.O getDepictedObject()
null if this depictor is not installed in a depicted object.boolean isDepicted()
void setDepicted(boolean newDepicted)
true, all modified properties are removed.
If the new depicted status is false, the GENERAL_PROPERTY property is set as modified.
newDepicted - Whether this depictor's representation of the depicted object is up to date.void installed(O depictedObject)
depictedObject - The depictedObject into which this depictor is being installed.
java.lang.NullPointerException - if the given depicted object is null.
java.lang.IllegalStateException - if this depictor is already installed in a depicted object.void uninstalled(O depictedObject)
depictedObject - The depicted object from which this depictor is being uninstalled.
java.lang.NullPointerException - if the given depicted object is null.
java.lang.IllegalStateException - if this depictor is not installed in a depicted object.void processEvent(PlatformEvent event)
event - The event to be processed.
java.lang.IllegalArgumentException - if the given event is a relevant DepictEvent with a source of a different depicted object.
void depict()
throws java.io.IOException
java.io.IOException - if there is an error updating the depiction.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||