|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.graph.GraphSettings
public class GraphSettings
A structure encapsulating a set of graph settings, including zoom, rotation, locality, hyperbolic radius and distortion (fisheye effect), sequence, and the ID of the selected node. This is admittedly a bit imperfect since TouchGraph is by its nature dynamic, with the positioning of graph nodes set by graph tensioning, not absolute location.
For flexibility' sake, rather than set/get methods, the member variables are all public.
GraphLayoutPanel| Field Summary | |
|---|---|
int |
m_fisheye
The graph hyperbolic distortion (fisheye distortion) value. |
int |
m_locality
The graph locality value. |
Point |
m_offset
The horizontal and vertical offset from 0,0, expressed as a Point. |
int |
m_radius
The graph hyperbolic radius (fisheye distortion) value. |
int |
m_rotation
The graph rotation value. |
StackSet |
m_selected
The set of the selected node IDs, empty if there is no selection. |
int |
m_sequence
The graph sequence distortion value. |
int |
m_zoom
The graph zoom value. |
int |
offsetLimit
The horizontal and vertical offset limit on imported lens settings. |
static int |
selectionLimit
The maximum number of remembered graph nodes in a selection. |
| Constructor Summary | |
|---|---|
GraphSettings()
Default constructor. |
|
GraphSettings(GraphLayoutPanel glp)
Constructor with a GraphLayoutPanel glp. |
|
GraphSettings(String settings)
Constructor with a settings String settings. |
|
| Method Summary | |
|---|---|
void |
capture(GraphLayoutPanel glp)
Captures the current settings of the provided GraphLayoutPanel glp. |
String |
getEncodedSettings()
Returns a semicolon-delimited list of current lens settings stored within this GraphSettings. |
static String |
getEncodedSettings(GraphLayoutPanel glp)
Returns a semicolon-delimited list of current lens settings of the provided GraphLayoutPanel. |
void |
parseGraphSettings(String settings)
Set the various lens settings according to a parse of the semicolon-delimited values in the String settings. |
boolean |
restore(GraphLayoutPanel glp)
Restores the settings of the provided GraphLayoutPanel glp to those of this GraphSettings. |
String |
toString()
Returns the String representation of this GraphSettings, ie., its label. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int selectionLimit
public int m_zoom
public int m_rotation
public int m_locality
public int m_radius
public int m_fisheye
public int m_sequence
public Point m_offset
public StackSet m_selected
public final int offsetLimit
| Constructor Detail |
|---|
public GraphSettings()
public GraphSettings(String settings)
throws NumberFormatException
NumberFormatException - upon invalid syntaxpublic GraphSettings(GraphLayoutPanel glp)
| Method Detail |
|---|
public void capture(GraphLayoutPanel glp)
public boolean restore(GraphLayoutPanel glp)
public void parseGraphSettings(String settings)
throws NumberFormatException
NumberFormatExceptiongetEncodedSettings()public static String getEncodedSettings(GraphLayoutPanel glp)
public String getEncodedSettings()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||