|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.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
- ConfigurationMethod Detail |
---|
public void setGraph(LayoutedGraph graph)
GraphView
setGraph
in class GraphView
graph
- Graph objectpublic java.awt.Component getComponent()
GraphView
getComponent
in class GraphView
public void centerGraph()
GraphView
centerGraph
in class GraphView
public void setScale(double scale)
GraphView
setScale
in class GraphView
scale
- scale factorpublic void setTranslateX(double translateX)
GraphView
setTranslateX
in class GraphView
translateX
- x-translationpublic void setTranslateY(double translateY)
GraphView
setTranslateY
in class GraphView
translateY
- y-translationpublic void unHighlightAll()
GraphView
unHighlightAll
in class GraphView
public void highlight(Node node)
GraphView
highlight
in class GraphView
node
- nodepublic void highlight(java.util.Collection<Node> nodes)
GraphView
highlight
in class GraphView
nodes
- list of nodespublic void deselect()
GraphView
deselect
in class GraphView
public void deselect(Node node)
GraphView
deselect
in class GraphView
node
- nodepublic void show(Node node)
GraphView
show
in class GraphView
node
- nodepublic void hide(Node node)
GraphView
hide
in class GraphView
node
- nodepublic void showAll()
GraphView
showAll
in class GraphView
public void hideAll()
GraphView
hideAll
in class GraphView
public void select(Node node)
GraphView
select
in class GraphView
node
- nodepublic void exportJPEG(java.lang.String filename, float scale, boolean grayscale)
GraphView
exportJPEG
in class GraphView
filename
- filenamescale
- scale factorpublic void setBackgroundColor(java.awt.Color backgroundColor)
GraphView
setBackgroundColor
in class GraphView
public void setEdgeVisible(boolean flag)
GraphView
setEdgeVisible
in class GraphView
public void updateNodes(java.util.Set<Node> nodes)
GraphView
updateNodes
in class GraphView
nodes
- nodes that should be repainted.public void setZoomEnabled(boolean flag)
GraphView
setZoomEnabled
in class GraphView
public void setMovingEnabled(boolean flag)
GraphView
setMovingEnabled
in class GraphView
public 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 |