|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILayoutServiceClient
Interface for a web service client. Every implementation needs to provide a
default constructor so that the LayoutServiceClients
class can initialize it.
Method Summary | |
---|---|
void |
connect()
Connects this client to the layout service. |
void |
disconnect()
Disconnects this client from the layout service. |
Throwable |
getLastError()
Returns the last error occurred. |
String[] |
getLastErrorAsStringArray()
Returns a string array containing the messages of the the last exception occurred. |
byte[] |
getPreviewImage(String previewImage)
Returns a byte array containing the preview image. |
ServerConfigData |
getServerConfig()
Returns the ServerConfigData this client currently points to. |
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 |
isAvailable()
Checks whether the layout service this clients service address points to is currently available. |
boolean |
isConnected()
Returns whether the client is actually connected to the layout service. |
void |
setLastError(Throwable thelastError)
Sets the last error occurred. |
void |
setServerConfig(ServerConfigData theserverConfig)
Sets a new ServerConfigData this client points to. |
Method Detail |
---|
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
String getServiceData()
byte[] getPreviewImage(String previewImage)
previewImage
- the identifier of the preview image
boolean isAvailable()
boolean isConnected()
void connect()
void disconnect()
ServerConfigData getServerConfig()
ServerConfigData
this client currently points to.
void setServerConfig(ServerConfigData theserverConfig)
ServerConfigData
this client points to.
Resets the state of this client to disconnected.
theserverConfig
- the new server configurationString[] getLastErrorAsStringArray()
null
if everything went fineThrowable getLastError()
null
if everything went finevoid setLastError(Throwable thelastError)
thelastError
- the last error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |