de.deepamehta.plugins.topicmaps.model
Class ViewProperties

Show UML class diagram
java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by de.deepamehta.plugins.topicmaps.model.ViewProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class ViewProperties
extends HashMap<String,Object>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ViewProperties(boolean visibility)
          Convenience constructor that initializes the "dm4.topicmaps.visibility" standard view property.
ViewProperties(int x, int y)
          Convenience constructor that initializes the "dm4.topicmaps.x" and "dm4.topicmaps.y" standard view properties.
ViewProperties(int x, int y, boolean visibility)
          Convenience constructor that initializes the "dm4.topicmaps.x", "dm4.topicmaps.y", and "dm4.topicmaps.visibility" standard view properties.
ViewProperties(JSONObject viewProps)
          Note: invoked from JAX-RS message body reader (see Webservice's ObjectProvider.java).
 
Method Summary
 boolean getBoolean(String propUri)
           
 int getInt(String propUri)
           
 Iterable<String> propUris()
           
private  void put(boolean visibility)
           
private  void put(int x, int y)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ViewProperties

public ViewProperties(JSONObject viewProps)
Note: invoked from JAX-RS message body reader (see Webservice's ObjectProvider.java).


ViewProperties

public ViewProperties(int x,
                      int y,
                      boolean visibility)
Convenience constructor that initializes the "dm4.topicmaps.x", "dm4.topicmaps.y", and "dm4.topicmaps.visibility" standard view properties.


ViewProperties

public ViewProperties(int x,
                      int y)
Convenience constructor that initializes the "dm4.topicmaps.x" and "dm4.topicmaps.y" standard view properties.


ViewProperties

public ViewProperties(boolean visibility)
Convenience constructor that initializes the "dm4.topicmaps.visibility" standard view property.

Method Detail

getInt

public int getInt(String propUri)

getBoolean

public boolean getBoolean(String propUri)

propUris

public Iterable<String> propUris()

put

private void put(int x,
                 int y)

put

private void put(boolean visibility)


Copyright © 2015. All Rights Reserved.