|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.deepamehta.BaseTopic
de.deepamehta.PresentableTopic
Extends the basis model of a topic by the data needed to present a topic graphically.
A PresentableTopic can be serialized and send through an output stream.
A PresentableTopic is created at server side and send to the client
who builds a PresentationTopic upon it.
The "presentable" data comprises
GEOM_MODE_ABSOLUTE The geometry is known in absolute coordinates
GEOM_MODE_NEAR The geometry is not known yet -- the client is supposed
to place the topic in the near of another known topic
GEOM_MODE_FREE The geometry is not known yet -- the client is supposed
to place the topic at any free position
APPEARANCE_DEFAULT There is no individual icon to present this topic --
the appearance is determined by the respective topic type
APPEARANCE_CUSTOM_ICON There is an individual icon to present this topic --
this feature is called "individual appearnace"
| Field Summary | |
protected int |
appMode
Individual appearance mode: DeepaMehtaConstants.APPEARANCE_DEFAULT or DeepaMehtaConstants.APPEARANCE_CUSTOM_ICON. |
protected java.lang.String |
appParam
Individual appearance parameter: in case of DeepaMehtaConstants.APPEARANCE_CUSTOM_ICON this
field contains the filename of the individual icon, in case of
DeepaMehtaConstants.APPEARANCE_DEFAULT this field remains uninitialized (and is not
serialized). |
| Fields inherited from class de.deepamehta.BaseTopic |
id, name, ordNr, type, typeVersion, version |
| Constructor Summary | |
PresentableTopic(BaseTopic topic)
see de.deepamehta.service.ApplicationService#createPresentableTopic(BaseTopic topic, String appTopicID) |
|
PresentableTopic(BaseTopic topic,
java.util.Hashtable properties)
|
|
PresentableTopic(BaseTopic topic,
java.awt.Point geometry)
|
|
PresentableTopic(BaseTopic topic,
java.lang.String nearTopicID)
|
|
PresentableTopic(java.io.DataInputStream in)
Stream constructor. |
|
PresentableTopic(PresentableTopic topic)
Copy constructor. |
|
PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name)
|
|
PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.awt.Point geometry)
|
|
PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.awt.Point geometry,
java.lang.String topicLabel)
|
|
PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.lang.String nearTopicID)
|
|
PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.lang.String nearTopicID,
java.awt.Point offset)
|
|
PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.lang.String nearTopicID,
java.lang.String topicLabel)
|
|
| Method Summary | |
int |
getAppearanceMode()
|
java.lang.String |
getAppearanceParam()
|
boolean |
getEvoke()
|
java.awt.Point |
getGeometry()
|
int |
getGeometryMode()
|
java.lang.String |
getLabel()
|
java.lang.String |
getNearTopicID()
|
java.util.Hashtable |
getProperties()
|
boolean |
isLocked()
|
boolean |
isVirtual()
|
void |
setEvoke(boolean evoke)
|
void |
setGeometry(java.awt.Point p)
|
void |
setIcon(java.lang.String iconfile)
Sets appearance for this PresentableTopic. |
void |
setLabel(java.lang.String label)
|
void |
setLocked(boolean isLocked)
|
void |
setNearTopicID(java.lang.String topicID)
|
void |
setProperties(java.util.Hashtable properties)
|
void |
setVirtual(boolean virtual)
|
void |
write(java.io.DataOutputStream out)
Serializes this PresentableTopic and writes it to the specified
output stream. |
| Methods inherited from class de.deepamehta.BaseTopic |
equals, getID, getName, getType, getTypeVersion, getVersion, setID, setName, setOrdinalNr, setType, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int appMode
DeepaMehtaConstants.APPEARANCE_DEFAULT or DeepaMehtaConstants.APPEARANCE_CUSTOM_ICON.
Initialized by constructors of this class and (indirect) subclass
PresentationType.PresentationType(java.io.DataInputStream, de.deepamehta.client.PresentationService) and by setIcon(java.lang.String).
protected java.lang.String appParam
DeepaMehtaConstants.APPEARANCE_CUSTOM_ICON this
field contains the filename of the individual icon, in case of
DeepaMehtaConstants.APPEARANCE_DEFAULT this field remains uninitialized (and is not
serialized).
Initialized by constructors of this class and (indirect)
subclass
PresentationType.PresentationType(java.io.DataInputStream, de.deepamehta.client.PresentationService) and
by setIcon(java.lang.String).
| Constructor Detail |
public PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name)
public PresentableTopic(BaseTopic topic)
public PresentableTopic(BaseTopic topic,
java.util.Hashtable properties)
public PresentableTopic(BaseTopic topic,
java.awt.Point geometry)
public PresentableTopic(BaseTopic topic,
java.lang.String nearTopicID)
de.deepamehta.topics.TopicContainerTopic#createPresentableTopic(BaseTopic topic, String nearTopicID)public PresentableTopic(PresentableTopic topic)
public PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.awt.Point geometry)
ApplicationService.createTopic(java.lang.String, java.lang.String, int, int, java.lang.String, de.deepamehta.service.Session),
ApplicationService.createNewContainer(de.deepamehta.topics.LiveTopic, java.lang.String, java.lang.String, java.util.Hashtable, java.lang.String, java.lang.String, int, java.util.Vector, boolean),
de.deepamehta.service.ApplicationService#getAllTopics,
de.deepamehta.service.RelationalCorporateMemory#createPresentableTopic,
de.deepamehta.topics.ElementContainerTopic#createNewContainer,
de.deepamehta.topics.ElementContainerTopic#createTopicFromElement
public PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.lang.String nearTopicID)
public PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.lang.String nearTopicID,
java.awt.Point offset)
public PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.awt.Point geometry,
java.lang.String topicLabel)
ApplicationService.createNewContainer(de.deepamehta.topics.LiveTopic, java.lang.String, java.lang.String, java.util.Hashtable, java.lang.String, java.lang.String, int, java.util.Vector, boolean)
public PresentableTopic(java.lang.String id,
int version,
java.lang.String type,
int typeVersion,
java.lang.String name,
java.lang.String nearTopicID,
java.lang.String topicLabel)
ApplicationService.getRelatedTopics(java.lang.String, java.lang.String, int),
de.deepamehta.topics.ContainerTopic#createPresentableTopic
public PresentableTopic(java.io.DataInputStream in)
throws java.io.IOException
| Method Detail |
public int getGeometryMode()
public java.awt.Point getGeometry()
public void setGeometry(java.awt.Point p)
public boolean isLocked()
public void setLocked(boolean isLocked)
ApplicationService#initTopicLock,
RelationalCorporateMemory#queryPresentableTopics(String query),
PresentationTopicMap#setTopicLockpublic java.lang.String getNearTopicID()
public void setNearTopicID(java.lang.String topicID)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.util.Hashtable getProperties()
de.deepamehta.service.CorporateDirectives#createLiveTopicpublic void setProperties(java.util.Hashtable properties)
ApplicationService.createNewContainer(de.deepamehta.topics.LiveTopic, java.lang.String, java.lang.String, java.util.Hashtable, java.lang.String, java.lang.String, int, java.util.Vector, boolean),
de.deepamehta.topics.ElementContainerTopic#createTopicFromElementpublic boolean getEvoke()
public void setEvoke(boolean evoke)
public boolean isVirtual()
public void setVirtual(boolean virtual)
public int getAppearanceMode()
de.deepamehta.client.DeepaMehtaClient#editorIconpublic java.lang.String getAppearanceParam()
de.deepamehta.client.DeepaMehtaClient#editorIcon,
de.deepamehta.client.PresentationType#setIconpublic void setIcon(java.lang.String iconfile)
PresentableTopic.
iconfile - if empty appearance is set to APPEARANCE_DEFAULT otherwise
appearance is set to APPEARANCE_CUSTOM_ICONApplicationService.createPresentableTopic(java.lang.String, int),
ApplicationService.initTopicAppearance(de.deepamehta.PresentableTopic)
public void write(java.io.DataOutputStream out)
throws java.io.IOException
PresentableTopic and writes it to the specified
output stream.
write in class BaseTopicjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||