|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.view.GraphView
pedviz.view.GraphView3D
public class GraphView3D
This class visualizes a LayoutedGraph object in a three-dimensional environment.
| Constructor Summary | |
|---|---|
GraphView3D()
Creates a new GraphView object. |
|
GraphView3D(java.awt.GraphicsConfiguration config)
Constructs a GraphView with the given configuration. |
|
GraphView3D(java.awt.GraphicsConfiguration config,
LayoutedGraph graph)
Constructs a GraphView with the given configuration and displays the given LayoutedGaph object. |
|
GraphView3D(LayoutedGraph graph)
Creates a new GraphView object and displays the given LayoutedGaph object. |
|
| Method Summary | |
|---|---|
void |
centerGraph()
Centers the graph and fits the size on. |
void |
deselect()
Deselects all nodes that are currently selected. |
void |
deselect(Node node)
Deselects the given node if it's selected. |
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 |
hide(Node node)
Hides the given node if it's shown. |
void |
hideAll()
Hides all nodes that are currently shown. |
void |
highlight(java.util.Collection<Node> nodes)
Highlights a collection of nodes. |
void |
highlight(Node node)
Highlights the given node. |
boolean |
isAntialiasingEnabled()
Returns true if the visualization uses antialiasing. |
boolean |
isLightEnabled()
Returns true if the visualization uses lights. |
boolean |
isMaterialEnabled()
Returns true if the nodes use matrials. |
boolean |
isTransparencyEnabled()
Returns true if the visualization uses transparency. |
boolean |
isVisbleSphere()
Returns true, if the sphere is visible. |
void |
select(Node node)
Selects a single node. |
void |
setAntialiasingEnabled(boolean useAntialiasing)
Enables or disables antiliasing. |
void |
setBackgroundColor(java.awt.Color backgroundColor)
Sets the background color of this component. |
void |
setEdgeVisible(boolean flag)
Displays or hides the edges. |
void |
setGraph(LayoutedGraph graph)
Sets the LayoutedGraph for this view.. |
void |
setLightEnabled(boolean useLight)
Enables or disables transparency lights. |
void |
setMaterialEnabled(boolean useMaterial)
Enables or disables materials. |
void |
setMovingEnabled(boolean flag)
Enables or disables moving. |
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 |
setTransparencyEnabled(boolean useTransparency)
Enables or disables transparency. |
void |
setVisbleSphere(boolean visbleSphere)
Sets the visibilty of the sphere. |
void |
setXRotatingEnabled(boolean xRotating)
Enables or disables rotating on the x-axis. |
void |
setYRotatingEnabled(boolean yRotating)
Enables or disables rotating on the y-axis.. |
void |
setZoomEnabled(boolean flag)
Enables or disables zooming. |
void |
show(Node node)
Shows the given node if it's hidden. |
void |
showAll()
Shows all nodes that are currently hidden. |
void |
unHighlightAll()
Clears accentuation for all nodes. |
void |
updateNodes(java.util.Set<Node> nodes)
Redraws the given nodes. |
void |
updateRules()
Reapplies all rules. |
| Methods inherited from class pedviz.view.GraphView |
|---|
addNodeListener, addRule, fireNodeEvent, getAlpha, getBackgroundColor, getEffect, getGraph, getRules, getScale, getSelection, getSelectionCount, getTranslateX, getTranslateY, isEdgeVisible, isMovingEnabled, isMultiselection, isSelected, isSelectionEnabled, isZoomEnabled, removeNodeListener, removeRule, select, setAlpha, setCursor, setEffect, setMultiselection, setRules, setSelectionEnabled, setTranslate, updateGraphModel, updateGraphView |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphView3D()
public GraphView3D(LayoutedGraph graph)
graph -
public GraphView3D(java.awt.GraphicsConfiguration config,
LayoutedGraph graph)
config - Configurationgraph - LayoutedGraph objectpublic GraphView3D(java.awt.GraphicsConfiguration config)
config - Configuration| Method Detail |
|---|
public void setGraph(LayoutedGraph graph)
GraphView
setGraph in class GraphViewgraph - Graph objectpublic java.awt.Component getComponent()
GraphView
getComponent in class GraphViewpublic void centerGraph()
GraphView
centerGraph 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 unHighlightAll()
GraphView
unHighlightAll in class GraphViewpublic void highlight(Node node)
GraphView
highlight in class GraphViewnode - nodepublic void highlight(java.util.Collection<Node> nodes)
GraphView
highlight in class GraphViewnodes - list of nodespublic void deselect()
GraphView
deselect in class GraphViewpublic void deselect(Node node)
GraphView
deselect in class GraphViewnode - nodepublic void show(Node node)
GraphView
show in class GraphViewnode - nodepublic void hide(Node node)
GraphView
hide in class GraphViewnode - nodepublic void showAll()
GraphView
showAll in class GraphViewpublic void hideAll()
GraphView
hideAll in class GraphViewpublic void select(Node node)
GraphView
select in class GraphViewnode - node
public void exportJPEG(java.lang.String filename,
float scale,
boolean grayscale)
GraphView
exportJPEG in class GraphViewfilename - filenamescale - scale factorpublic void setBackgroundColor(java.awt.Color backgroundColor)
GraphView
setBackgroundColor in class GraphViewpublic void setEdgeVisible(boolean flag)
GraphView
setEdgeVisible in class GraphViewpublic void updateNodes(java.util.Set<Node> nodes)
GraphView
updateNodes in class GraphViewnodes - nodes that should be repainted.public void setZoomEnabled(boolean flag)
GraphView
setZoomEnabled in class GraphViewpublic void setMovingEnabled(boolean flag)
GraphView
setMovingEnabled in class GraphViewpublic void setYRotatingEnabled(boolean yRotating)
flag - public void setXRotatingEnabled(boolean xRotating)
flag - public boolean isTransparencyEnabled()
public void setTransparencyEnabled(boolean useTransparency)
useTransparency - public boolean isAntialiasingEnabled()
public void setAntialiasingEnabled(boolean useAntialiasing)
useAntialiasing - public boolean isMaterialEnabled()
public void setMaterialEnabled(boolean useMaterial)
useMaterial - public boolean isLightEnabled()
public void setLightEnabled(boolean useLight)
useLight - public boolean isVisbleSphere()
public void setVisbleSphere(boolean visbleSphere)
visbleSphere - the visibilty of the sphere.public void updateRules()
GraphView
updateRules in class GraphView
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||