|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kwebs.client.AbstractLayoutServiceClient
de.cau.cs.kieler.kwebs.client.jeti.JetiClient
public final class JetiClient
Client implementation for the jETI web service.
Constructor Summary | |
---|---|
JetiClient()
Constructs a new jETI web service client. |
|
JetiClient(ServerConfigData theserverConfig)
Constructs a jETI based web service client pointing to the address of the given provider. |
Method Summary | |
---|---|
void |
connect()
Connects this client to the layout service. |
void |
disconnect()
Disconnects this client from the layout service. |
byte[] |
getPreviewImage(String previewImage)
Returns a byte array containing the preview image. |
String |
getServiceData()
Returns the meta data from the layout service. |
String |
graphLayout(String serializedGraph,
String format,
List<GraphLayoutOption> options)
Does the graph layout on the layout server the client is connected to. |
boolean |
isConnected()
Returns whether the client is actually connected to the layout service. |
void |
setServerConfig(ServerConfigData theserverConfig)
Sets a new ServerConfigData this client points to. |
Methods inherited from class de.cau.cs.kieler.kwebs.client.AbstractLayoutServiceClient |
---|
getLastError, getLastErrorAsStringArray, getServerConfig, isAvailable, setLastError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JetiClient()
public JetiClient(ServerConfigData theserverConfig)
theserverConfig
- the ServerConfigData
of the layout service to be usedMethod Detail |
---|
public boolean isConnected()
public void connect()
public void disconnect()
public String graphLayout(String serializedGraph, String format, List<GraphLayoutOption> options)
serializedGraph
- the graph to do layout on in serial representationformat
- the format used to serialize the graph Formats
options
- possible layout options
graphLayout
public String getServiceData()
public byte[] getPreviewImage(String previewImage)
previewImage
- the identifier of the preview image
public void setServerConfig(ServerConfigData theserverConfig)
ServerConfigData
this client points to.
Resets the state of this client to disconnected.
setServerConfig
in interface ILayoutServiceClient
setServerConfig
in class AbstractLayoutServiceClient
theserverConfig
- the new server configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |