de.deepamehta.plugins.topicmaps.model
Class TopicViewmodel
java.lang.Object
de.deepamehta.core.model.DeepaMehtaObjectModel
de.deepamehta.core.model.TopicModel
de.deepamehta.plugins.topicmaps.model.TopicViewmodel
- All Implemented Interfaces:
- de.deepamehta.core.Identifiable, de.deepamehta.core.JSONEnabled, Cloneable
public class TopicViewmodel
- extends de.deepamehta.core.model.TopicModel
A topic viewmodel as contained in a topicmap viewmodel.
That is a generic topic model enriched by view properties. Standard view properties are "dm4.topicmaps.x",
"dm4.topicmaps.y", and "dm4.topicmaps.visibility". Additional view properties can be added by plugins (by
implementing a Viewmodel Customizer).
| Fields inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel |
childTopics, id, typeUri, uri, value |
|
Method Summary |
ViewProperties |
getViewProperties()
|
boolean |
getVisibility()
Convencience method to access the "dm4.topicmaps.visibility" standard view property. |
int |
getX()
Convencience method to access the "dm4.topicmaps.x" standard view property. |
int |
getY()
Convencience method to access the "dm4.topicmaps.y" standard view property. |
org.codehaus.jettison.json.JSONObject |
toJSON()
|
| Methods inherited from class de.deepamehta.core.model.TopicModel |
clone, createRoleModel, toString |
| Methods inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel |
equals, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri |
TopicViewmodel
public TopicViewmodel(de.deepamehta.core.model.TopicModel topic,
ViewProperties viewProps)
getViewProperties
public ViewProperties getViewProperties()
getX
public int getX()
- Convencience method to access the "dm4.topicmaps.x" standard view property.
getY
public int getY()
- Convencience method to access the "dm4.topicmaps.y" standard view property.
getVisibility
public boolean getVisibility()
- Convencience method to access the "dm4.topicmaps.visibility" standard view property.
toJSON
public org.codehaus.jettison.json.JSONObject toJSON()
- Specified by:
toJSON in interface de.deepamehta.core.JSONEnabled- Overrides:
toJSON in class de.deepamehta.core.model.DeepaMehtaObjectModel
Copyright © 2015. All rights reserved.