|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccvisu.CCVisu
Main class of the CCVisu package. Contains the main pogram and some auxiliary methods.
Field Summary | |
private static int |
CVS
CVS log format (only input). |
private static int |
DISP
Display gaph layout on screen (only output). |
static java.lang.String |
endl
End of line. |
private static int |
LAY
Graph layout in textual format. |
private static int |
RSF
Graph (relation) in relational standard format. |
private static int |
SVG
Graph layout in SVG format (only output). |
private static int |
VRML
Graph layout in VRML format (only output). |
Constructor Summary | |
CCVisu()
|
Method Summary | |
private static void |
chkAvail(java.lang.String[] args,
int i)
Checks whether the command line argument at index i has a follower argument. |
private static void |
computeLayout(GraphData graph,
int nrIterations,
int attrExponent,
boolean vertRepu,
boolean noWeight,
float gravitation)
Compute layout for a given graph. |
private static int |
getFormat(java.lang.String format)
Transforms the format given as a string into the appropriate integer value. |
private static void |
initializeLayout(GraphData graph,
int nrDim)
Compute randomized initial layout for a given graph with the given number of dimensions. |
static void |
main(java.lang.String[] args)
Main program. |
private static void |
markSpecial(GraphData graph)
Special marking for certain vertices by setting attributes of the vertex, e.g., color and showName. |
private static void |
printHelp()
Prints usage information. |
private static void |
printVersion()
Prints version information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String endl
private static final int CVS
private static final int RSF
private static final int LAY
private static final int VRML
private static final int SVG
private static final int DISP
Constructor Detail |
public CCVisu()
Method Detail |
public static void main(java.lang.String[] args)
args
- Command line arguments.private static void printVersion()
private static void printHelp()
private static int getFormat(java.lang.String format)
format
- File format string to be transformed to int.
private static void chkAvail(java.lang.String[] args, int i)
args
- String array containing the command line arguments.i
- Index to check.private static void initializeLayout(GraphData graph, int nrDim)
graph
- Graph representation, in/out parameter.nrDim
- Number of dimensions for the initial graph.private static void computeLayout(GraphData graph, int nrIterations, int attrExponent, boolean vertRepu, boolean noWeight, float gravitation)
graph
- In/Out parameter representing the graph.nrIterations
- Number of iterations.attrExponent
- Exponent of the Euclidian distance in the attraction term
of the energy (default: 1).vertRepu
- Use vertex repulsion instead of edge repulsion,
true for vertex repulsion, false for edge repulsion
(default: edge repulsion).noWeight
- Use unweighted model by ignoring the edge weights,
true for unweighted, false for weighted
(default: weighted).gravitation
- Gravitation factor for the Barnes-Hut-procedure,
attraction to the barycenter
(default: 0.001).private static void markSpecial(GraphData graph)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |