public class ViewProperties extends Object implements Iterable<String>, JSONEnabled
Constructor and Description |
---|
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(org.codehaus.jettison.json.JSONObject viewProps)
Note: invoked from JAX-RS message body reader (see Webservice's ObjectProvider.java).
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String propUri) |
boolean |
getBoolean(String propUri)
Convenience getter.
|
int |
getInt(String propUri)
Convenience getter.
|
private void |
initPos(int x,
int y) |
private void |
initVisibility(boolean visibility) |
Iterator<String> |
iterator() |
void |
put(String propUri,
Object value) |
org.codehaus.jettison.json.JSONObject |
toJSON() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ViewProperties(org.codehaus.jettison.json.JSONObject viewProps)
public ViewProperties(int x, int y, boolean visibility)
public ViewProperties(int x, int y)
public ViewProperties(boolean visibility)
public boolean getBoolean(String propUri)
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
private void initPos(int x, int y)
private void initVisibility(boolean visibility)
Copyright © 2017. All Rights Reserved.