|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccvisu.CCVisu
public class CCVisu
Main class of the CCVisu package. Contains the main pogram and some auxiliary methods.
Field Summary | |
---|---|
static java.awt.Color |
black
|
static java.awt.Color |
blue
|
static java.awt.Color |
chocolate4
|
static int |
CVS
CVS log format (only input). |
static java.awt.Color |
cyan
|
static java.awt.Color |
darkCyan
|
static java.awt.Color |
darkGray
|
static java.awt.Color |
darkMagenta
|
static java.awt.Color |
darkOliveGreen4
|
static java.awt.Color |
darkYellow
|
static int |
DISP
Display graph layout on screen (only output). |
static java.lang.String |
endl
End of line. |
static java.awt.Color |
gray
|
static java.awt.Color |
green
|
private static boolean |
hideSource
Global options |
static int |
LAY
Graph layout in textual format. |
static java.awt.Color |
lightBlue
|
static java.awt.Color |
lightGray
|
static java.awt.Color |
lightGreen
|
static java.awt.Color |
lightRed
|
static java.awt.Color |
magenta
|
static Marker |
marker
|
static java.awt.Color |
orange
|
static java.awt.Color |
pink
|
static java.awt.Color |
red
|
static int |
RSF
Graph (relation) in relational standard format. |
static int |
SVG
Graph layout in SVG format (only output). |
private static int |
verbosityLevel
|
static int |
VRML
Graph layout in VRML format (only output). |
static java.awt.Color |
white
|
static java.awt.Color |
yellow
|
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. |
static void |
computeLayout(GraphData graph,
int nrIterations,
float attrExponent,
float repuExponent,
boolean vertRepu,
boolean noWeight,
float gravitation,
GraphData initialLayout,
boolean fixedInitPos,
GraphEventListener listener)
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. |
static boolean |
getHideSource()
Get value of option hideSource. |
static int |
getVerbosityLevel()
Get value of option verbosityLevel. |
static void |
initializeLayout(GraphData graph,
int nrDim,
GraphData initialLayout)
Compute randomized initial layout for a given graph with the given number of dimensions. |
static void |
main(java.lang.String[] args)
Main program. |
static void |
mark(Marker m,
GraphData graph)
Highlight nodes |
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 boolean hideSource
private static int verbosityLevel
public static final int CVS
public static final int RSF
public static final int LAY
public static final int VRML
public static final int SVG
public static final int DISP
public static Marker marker
public static final java.awt.Color white
public static final java.awt.Color lightGray
public static final java.awt.Color gray
public static final java.awt.Color darkGray
public static final java.awt.Color black
public static final java.awt.Color red
public static final java.awt.Color green
public static final java.awt.Color blue
public static final java.awt.Color yellow
public static final java.awt.Color magenta
public static final java.awt.Color cyan
public static final java.awt.Color lightRed
public static final java.awt.Color lightGreen
public static final java.awt.Color lightBlue
public static final java.awt.Color darkYellow
public static final java.awt.Color darkMagenta
public static final java.awt.Color darkCyan
public static final java.awt.Color pink
public static final java.awt.Color orange
public static final java.awt.Color chocolate4
public static final java.awt.Color darkOliveGreen4
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.public static void initializeLayout(GraphData graph, int nrDim, GraphData initialLayout)
graph
- Graph representation, in/out parameter.nrDim
- Number of dimensions for the initial graph.initialLayout
- Initial layout representaiton as read from file.public static void computeLayout(GraphData graph, int nrIterations, float attrExponent, float repuExponent, boolean vertRepu, boolean noWeight, float gravitation, GraphData initialLayout, boolean fixedInitPos, GraphEventListener listener)
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).listener
- A listener that to the graph's changespublic static boolean getHideSource()
public static int getVerbosityLevel()
public static void mark(Marker m, GraphData graph)
m
- the marker to usegraph
- the graph to mark
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |