public class TopicViewmodel extends TopicModel
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).
Modifier and Type | Field and Description |
---|---|
private ViewProperties |
viewProps |
childTopics, id, typeUri, uri, value
Constructor and Description |
---|
TopicViewmodel(TopicModel topic,
ViewProperties viewProps) |
Modifier and Type | Method and Description |
---|---|
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() |
clone, createRoleModel, toString
equals, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
private ViewProperties viewProps
public TopicViewmodel(TopicModel topic, ViewProperties viewProps)
public ViewProperties getViewProperties()
public int getX()
public int getY()
public boolean getVisibility()
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
toJSON
in class DeepaMehtaObjectModel
Copyright © 2015. All Rights Reserved.