|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.view.GraphView
pedviz.view.GraphView2D
public class GraphView2D
This class visualizes a LayoutedGraph in a tow-dimensional environment.
| Constructor Summary | |
|---|---|
GraphView2D()
Creates a new GraphView2D object. |
|
GraphView2D(LayoutedGraph graph)
Creates a new GraphView2D object for the given LayoutedGraph object. |
|
| Method Summary | |
|---|---|
void |
centerGraph()
Centers the graph and fits the size on. |
void |
exportJPEG(java.lang.String filename,
float scale,
boolean grayscale)
Exports the GraphView as a jpeg-file. |
java.awt.Component |
getComponent()
Returns the SWING/AWT component used by this instance. |
void |
setScale(double scale)
Sets the scale factor. |
void |
setTranslateX(double translateX)
Sets the x-translation. |
void |
setTranslateY(double translateY)
Sets the y-translation. |
void |
updateGraphView()
Fires an update of the GraphView manually. |
void |
updateNodes(java.util.Set<Node> nodes)
Redraws the given nodes. |
void |
updateRules()
Reapplies all rules. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphView2D()
public GraphView2D(LayoutedGraph graph)
graph - | Method Detail |
|---|
public void centerGraph()
GraphView
centerGraph in class GraphView
public void exportJPEG(java.lang.String filename,
float scale,
boolean grayscale)
GraphView
exportJPEG in class GraphViewfilename - filenamescale - scale factorpublic void updateGraphView()
GraphView
updateGraphView in class GraphViewpublic java.awt.Component getComponent()
GraphView
getComponent in class GraphViewpublic void setScale(double scale)
GraphView
setScale in class GraphViewscale - scale factorpublic void setTranslateX(double translateX)
GraphView
setTranslateX in class GraphViewtranslateX - x-translationpublic void setTranslateY(double translateY)
GraphView
setTranslateY in class GraphViewtranslateY - y-translationpublic void updateNodes(java.util.Set<Node> nodes)
GraphView
updateNodes in class GraphViewnodes - nodes that should be repainted.public void updateRules()
GraphView
updateRules in class GraphView
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||