|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.util.graph.GraphEncoder
public class GraphEncoder
| Constructor Summary | |
|---|---|
GraphEncoder()
|
|
| Method Summary | |
|---|---|
static Graph |
decode(String encodedGraph,
boolean noMonth)
convert a String-encoded graph into a usable Graph object, using default GraphConfiguration |
static Graph |
decode(String encodedGraph,
GraphConfiguration config)
convert a String-encoded graph into a usable Graph object, using the provided GraphConfiguration. |
static String |
encode(Graph g)
Convert a complete Graph into an opaque String that can later be re-assembled into a Graph object. |
static String |
encode(int width,
int height,
RegionData[] data)
Convert a Graph fields into an opaque String that can later be re-assembled into a Graph object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphEncoder()
| Method Detail |
|---|
public static Graph decode(String encodedGraph,
boolean noMonth)
throws GraphEncodingException
encodedGraph - String encoded graph, as returned by getEncoded()noMonth - if true, disable the month highlight color
GraphEncodingException - if there were problems with the encoded
data
public static Graph decode(String encodedGraph,
GraphConfiguration config)
throws GraphEncodingException
encodedGraph - String encoded graph, as returned by getEncoded()config - the GraphConfiguration to use
GraphEncodingException - if there were problems with the encoded
datapublic static String encode(Graph g)
g - Graph to encode
public static String encode(int width,
int height,
RegionData[] data)
width - of the Graphheight - of the Graphdata - array of RegionData for the graph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||