VisualizationViewer
directly instead.public class GraphDraw extends javax.swing.JComponent implements StatusCallback
Modifier and Type | Class and Description |
---|---|
protected class |
GraphDraw.SliderChangeListener
Deprecated.
|
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
allFilters
Deprecated.
|
protected Filter |
mainFilter
Deprecated.
|
protected java.util.List |
sliders
Deprecated.
|
protected javax.swing.JLabel |
statusbar
Deprecated.
|
protected javax.swing.JPanel |
toolbar
Deprecated.
|
protected VisualizationViewer |
vv
Deprecated.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
GraphDraw(Graph g)
Deprecated.
Creates a graph drawing environment that draws this graph object.
|
GraphDraw(Layout layout)
Deprecated.
Creates a graph drawing environment with the specified layout algorithm
|
Modifier and Type | Method and Description |
---|---|
void |
addGraphMouseListener(GraphMouseListener gel)
Deprecated.
Use getVisualizationViewer.addMouseListener( new MouseListenerTranslator(gel, vv));
|
javax.swing.JSlider |
addSlider(LevelFilter l,
int low,
int high,
int defaultVal)
Deprecated.
Use the PluggableRenderer's vertex and edge visibility
predicates instead. See the release notes for version 1.6 for more
information.
|
void |
addStaticFilter(Filter f)
Deprecated.
Use the PluggableRenderer's vertex and edge visibility
predicates instead. See the release notes for version 1.6 for more
information.
|
void |
addTool(javax.swing.JComponent jc)
Deprecated.
Use the PluggableRenderer's vertex and edge visibility
predicates instead. See the release notes for version 1.6 for more
information.
|
void |
callBack(java.lang.String status)
Deprecated.
|
Layout |
getGraphLayout()
Deprecated.
Use
getVisualizationViewer().getGraphLayout() instead. |
Renderer |
getRender()
Deprecated.
As of version 1.5.2, replaced by getRenderer.
|
Renderer |
getRenderer()
Deprecated.
Use getVisualizationViewer.getRenderer() instead.
|
VisualizationViewer |
getVisualizationViewer()
Deprecated.
Returns the visualizationviewer that actually does the graph drawing.
|
void |
hideStatus()
Deprecated.
Hides the status bar at bottom left
|
void |
removeAllFilters()
Deprecated.
Use the PluggableRenderer's vertex and edge visibility
predicates instead. See the release notes for version 1.6 for more
information.
|
void |
resetRenderer()
Deprecated.
|
void |
restartLayout()
Deprecated.
Use
getVisualizationViewer().restart() instead. |
void |
setBackground(java.awt.Color bg)
Deprecated.
|
void |
setEdgeColor(java.awt.Color c)
Deprecated.
Modify this property via the renderer instead.
|
void |
setEdgeColorFunction(EdgeColorFunction ecf)
Deprecated.
Modify this property via the renderer instead.
|
void |
setEdgeThickness(int i)
Deprecated.
Modify this property via the renderer instead.
|
void |
setEdgeThicknessFunction(EdgeThicknessFunction etf)
Deprecated.
Modify this property via the renderer instead.
|
void |
setGraphLayout(Layout l)
Deprecated.
Use getVisualizationViewer.setGraphLayout(l) instead.
|
void |
setRenderer(Renderer r)
Deprecated.
Use getVisualizationViewer().setRenderer(r) instead.
|
void |
setVertexBGColor(java.awt.Color vertexColor)
Deprecated.
Modify this property via the renderer instead.
|
void |
setVertexColorFunction(VertexColorFunction vcf)
Deprecated.
Modify this property via the renderer instead.
|
void |
setVertexForegroundColor(java.awt.Color vertexColor)
Deprecated.
Modify this property via the renderer instead.
|
void |
setVertexPickedColor(java.awt.Color vertexColor)
Deprecated.
Modify this property via the renderer instead.
|
void |
showStatus()
Deprecated.
Shows the status bar at bottom left
|
void |
stop()
Deprecated.
Use
getVisualizationViewer().stop() instead. |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected VisualizationViewer vv
protected Filter mainFilter
protected java.util.List allFilters
protected java.util.List sliders
protected javax.swing.JPanel toolbar
protected javax.swing.JLabel statusbar
public GraphDraw(Graph g)
g
- public GraphDraw(Layout layout)
layout
- public VisualizationViewer getVisualizationViewer()
public void addGraphMouseListener(GraphMouseListener gel)
gel
- public void showStatus()
public void hideStatus()
public void setBackground(java.awt.Color bg)
setBackground
in class javax.swing.JComponent
public void callBack(java.lang.String status)
callBack
in interface StatusCallback
public void setRenderer(Renderer r)
r
- the new rendererpublic void resetRenderer()
public Renderer getRender()
public Renderer getRenderer()
public void setEdgeColor(java.awt.Color c)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.c
- the new edge colorpublic void setEdgeColorFunction(EdgeColorFunction ecf)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.ecf
- the new EdgeColorFunction
public void setEdgeThickness(int i)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.i
- the thickness of the edgepublic void setEdgeThicknessFunction(EdgeThicknessFunction etf)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.etf
- the new EdgeThicknessFunction
public void setVertexForegroundColor(java.awt.Color vertexColor)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.
Resets the background (fill) and the picked color to Color.RED
and Color.ORANGE, respectively; to modify all of these at once,
access the renderer directly (see PickableVertexPaintFunction
).vertexColor
- the new foreground (draw) color of the verticespublic void setVertexPickedColor(java.awt.Color vertexColor)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.
Resets the background (fill) and the foreground (draw) color to Color.RED
and Color.BLACK, respectively; to modify all of these at once,
access the renderer directly (see PickableVertexPaintFunction
).vertexColor
- the new picked color of the verticespublic void setVertexBGColor(java.awt.Color vertexColor)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.
Resets the picked color and the foreground (draw) color to Color.ORANGE
and Color.BLACK, respectively; to modify all of these at once,
access the renderer directly (see PickableVertexPaintFunction
).vertexColor
- the background color of the vertex that is to be setpublic void setVertexColorFunction(VertexColorFunction vcf)
VisualizationViewer
. Has no effect if
the renderer is not an instance of PluggableRenderer
.vcf
- the new VertexColorFunction
public void setGraphLayout(Layout l)
l
.l
- the new graph layout algorithmpublic void removeAllFilters()
public void addStaticFilter(Filter f)
f
- public javax.swing.JSlider addSlider(LevelFilter l, int low, int high, int defaultVal)
TODO: The situation may not be entirely right until applyFilter has been called.
l
- The Filter to use.low
- The low value on the filter: this will be the low point on
the sliderhigh
- The high value on the filter: this will be the high point on
the sliderdefaultVal
- The starting point on the filterpublic void addTool(javax.swing.JComponent jc)
jc
- the tool--any JComponent--to be added to the Toolbar on the
left sidepublic Layout getGraphLayout()
getVisualizationViewer().getGraphLayout()
instead.public void restartLayout()
getVisualizationViewer().restart()
instead.public void stop()
getVisualizationViewer().stop()
instead.