|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Term |
Description |
WILMA_HOME | The directory in which WilmaScope has been installed, eg: "c:/Program Files/Wilma" |
WILMA_CONSTANTS.properties | The global properties file that WilmaScope loads at runtime. Resides in WILMA_HOME/lib directory |
/**There is no need for a getControls method in GraphAnalysis plug-ins. By default an instance of AnalysisPanel is created by the super class. AnalysisPanel allows a user to choose visual mappings for the results of the analysis, and appears in the Graph Analysis window, shown below with a number of mappings defined for various analysis plugins:
* Calculate degree centrality for each node, ie for node v in V:
* degreecentrality(v) = degree(v)/max(degree(w)|w in V)
*
* @author dwyer
*/
public class DegreeCentrality extends GraphAnalysis {
public String getName() {
return "Degree Centrality";
}
/*
* @see org.wilmascope.graphanalysis.GraphAnalysis#analyse(org.wilmascope.control.GraphControl.Cluster)
*/
public void analyse() {
int maxDegree = 0;
for (Node n : getCluster().getNodes()) {
int degree = n.getDegree();
if (degree > maxDegree) {
maxDegree = degree;
}
}
if (maxDegree > 0) {
for (Node n : getCluster().getNodes()) {
float degreeCentrality = (float) n.getDegree() / (float) maxDegree;
n.getProperties().setProperty(getName(), "" + degreeCentrality);
}
}
}
}
Property Key |
Values |
Description |
Position |
Three floats separated by spaces |
X Y Z position. Values
between 0 and 1 are a good start. |
LevelConstraint |
integer |
constrains the z position to a
plane specified by the integer when used with certain layout engines |
FixedPosition |
[True|null] |
If this property is present with
any string then the node's position will be fixed... ie, not affected
by the layout |
Property Key |
Values |
Description |
Weight |
Float |
Affects layout when used with
certain layout engines. |
ViewPlugin
name |
Description |
DefaultNodeView |
Spherical node view.
Labels appear as floating banners. For improved performance the
number of faces shown are dependant on the distance from the camera. |
Oriented Box Node |
A box that always faces the
viewer. Labels are texture mapped onto the face. |
LineNode |
Use with LineEdge... the node
itself is invisible but this node type ensures that the line edge
colours are set according to the node colour |
LabelOnly |
Only the label is shown as a
banner |
Box Node |
A box shaped node. Labels
are texture mapped onto the face. |
SquareTube |
A tube with square cross section
and specified bottom and top dimensions |
A tubular node |
A tube with round cross section
and specified bottom and top dimensions |
ViewPlugin
name |
Description |
Plain Edge |
Cylindrical edge. For improved performance the number of faces shown are dependant on the distance from the camera. |
Arrow |
Arrow made out of a cylinder and
a cone |
LineEdge |
Uses
OpenGL (or DirectX) line segment primitive for super-fast
rendering.
Lines colouring is smoothly graded from start node colour to end node
colour if used with LineNode. |
Directed Edge |
Shows
a directed edge with a little cone next to the edge. Alternative
to
arrow. Originally intended as a 3D analog for UML directed edges. |
Attenuated Edge |
An
attenuated edge is tube that's fat at the ends and thin in the
middle.
If my sloppy calculations are correct then the radius should match the
radius of spherical nodes at either end. Colour should also be
graded
from the start node colour to end node colour. |
Inheritance |
A 3D analogue for a UML
inheritance edge. Basically an arrow with a blue cylinder and a
green cone at the start node. |
Aggregation |
A 3D analogue of the UML
aggregation edge style. Blue cylinder with red diamond on top. |
ViewPlugin
name |
Description |
Spherical Cluster |
A semitransparent spherical bubble around the constituent nodes. For improved performance the number of faces shown are dependant on the distance from the camera. |
Box Cluster |
Semitransparent box around
constituent nodes. |
Property Key |
Values |
Description |
Label |
String |
Text that will appear texture
mapped onto or in a banner above the graph element |
Visible |
[True|False] |
The graph element will not be
rendered... eg, hidden edges can be useful |
Colour |
Three space separated floats
between 0 and 1 |
Red, Green and Blue colour values |
Property Key |
Values |
Description |
Radius |
Float |
Radius... 0.1 is good for
spherical nodes. |
Property Key |
Values |
Description |
Radius |
Float |
Radius of edge cylinders. 0.02 works well with the DefaultEdgeView. |
LayoutPlugins=org.wilmascope.forcelayout.ForceLayout,....,org.wilmascope.randomlayout.RandomLayout
DefaultLayout=RandomThen, run WilmaScope, ensuring the path to your new classes and your copy of the WILMA_CONSTANTS.properties file are added to the classpath, eg:
java -cp %PATH_TO_YOUR_COPY_OF_WILMA_CONSTANTS_FILE%;%PATH_TO_YOUR_LAYOUT_CLASS%
-jar %WILMA_HOME%/lib/wilma.jar
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |