de.deepamehta.plugins.topicmaps.model
Class TopicViewmodel

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.model.DeepaMehtaObjectModel
      extended by de.deepamehta.core.model.TopicModel
          extended by de.deepamehta.plugins.topicmaps.model.TopicViewmodel
All Implemented Interfaces:
Identifiable, JSONEnabled, Cloneable

public class TopicViewmodel
extends TopicModel

A topic viewmodel as contained in a topicmap viewmodel. That is a generic topic model enriched by view properties ("x", "y", "visibility").


Field Summary
private  CompositeValueModel viewProps
           
 
Fields inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel
composite, id, typeUri, uri, value
 
Constructor Summary
TopicViewmodel(TopicModel topic, CompositeValueModel viewProps)
           
 
Method Summary
(package private)  int getX()
           
(package private)  int getY()
           
 JSONObject toJSON()
           
 
Methods inherited from class de.deepamehta.core.model.TopicModel
clone, createRoleModel, toString
 
Methods inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel
equals, getCompositeValueModel, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setCompositeValue, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

viewProps

private CompositeValueModel viewProps
Constructor Detail

TopicViewmodel

TopicViewmodel(TopicModel topic,
               CompositeValueModel viewProps)
Method Detail

toJSON

public JSONObject toJSON()
Specified by:
toJSON in interface JSONEnabled
Overrides:
toJSON in class DeepaMehtaObjectModel

getX

int getX()

getY

int getY()


Copyright © 2013. All Rights Reserved.