|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kwebs.GraphLayoutOption
public class GraphLayoutOption
Utility class for transferring layout options to the layout server.
Constructor Summary | |
---|---|
GraphLayoutOption()
Public default constructor needed for binding. |
|
GraphLayoutOption(String theid,
String thevalue)
Constructs a new instance with the given id and value. |
Method Summary | |
---|---|
static String |
arrayToString(GraphLayoutOption[] options)
Returns a string representation of an array of options. |
static GraphLayoutOption |
fromString(String serialOption)
Parses a serialized option. |
String |
getId()
Returns the id of this option. |
String |
getValue()
Returns the value of this option. |
static String |
listToString(List<GraphLayoutOption> options)
Returns a string representation of a list of options. |
void |
setId(String theid)
Sets the id of this option. |
void |
setValue(String thevalue)
Sets the value of this option. |
static GraphLayoutOption[] |
stringToArray(String options)
Returns an array of options which is created from its string representation. |
static List<GraphLayoutOption> |
stringToList(String options)
Returns a List of options which is created from its string representation. |
String |
toString()
Returns a string representation of this option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphLayoutOption()
public GraphLayoutOption(String theid, String thevalue)
theid
- the idthevalue
- the valueMethod Detail |
---|
public final String getId()
public final void setId(String theid)
theid
- the new idpublic final String getValue()
public final void setValue(String thevalue)
thevalue
- the new valuepublic static GraphLayoutOption fromString(String serialOption)
serialOption
- the serialized option
null
if a parse error occurredpublic String toString()
toString
in class Object
public static String listToString(List<GraphLayoutOption> options)
options
- a list of options
public static String arrayToString(GraphLayoutOption[] options)
options
- an array of options
public static List<GraphLayoutOption> stringToList(String options)
options
- string containing serialized array of options
public static GraphLayoutOption[] stringToArray(String options)
options
- string containing serialized array of options
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |