|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.uci.ics.jung.visualization.VisualizationViewer
org.ujmp.jung.JungGraphPanel
public abstract class JungGraphPanel
Nested Class Summary | |
---|---|
static class |
JungGraphPanel.Data
|
static class |
JungGraphPanel.GraphLayout
|
Nested classes/interfaces inherited from class edu.uci.ics.jung.visualization.VisualizationViewer |
---|
edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse, edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouseImpl, edu.uci.ics.jung.visualization.VisualizationViewer.Paintable, edu.uci.ics.jung.visualization.VisualizationViewer.ToolTipListener, edu.uci.ics.jung.visualization.VisualizationViewer.ToolTipListenerWrapper, edu.uci.ics.jung.visualization.VisualizationViewer.VisualizationListener |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected edu.uci.ics.jung.graph.Graph |
graph
|
protected static Logger |
logger
|
Fields inherited from class edu.uci.ics.jung.visualization.VisualizationViewer |
---|
changeSupport, doubleBuffered, graphMouse, layoutTransformer, locationMap, model, offscreen, offscreenG2d, pickedState, pickEventListener, pickSupport, postRenderers, preRenderers, renderer, renderingHints, toolTipFunction, viewTransformer |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JungGraphPanel()
|
Method Summary | |
---|---|
void |
componentHidden(ComponentEvent e)
|
void |
componentMoved(ComponentEvent e)
|
void |
componentResized(ComponentEvent e)
|
void |
componentShown(ComponentEvent e)
|
void |
edgeAdded(edu.uci.ics.jung.graph.event.GraphEvent event)
|
void |
edgeRemoved(edu.uci.ics.jung.graph.event.GraphEvent event)
|
void |
exportToJPEG(File file)
|
void |
exportToPDF(File file)
|
void |
exportToPNG(File file)
|
boolean |
isShowEdgeLabels()
|
boolean |
isShowEdges()
|
boolean |
isShowVertexLabels()
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paintComponent(Graphics g)
|
void |
renderGraph(Graphics2D g2d)
|
void |
repaintUI()
|
void |
setGraph(edu.uci.ics.jung.graph.Graph g)
|
void |
setShowEdgeLabels(boolean showEdgeLabels)
|
void |
setShowEdges(boolean showEdges)
|
void |
setShowVertexLabels(boolean showVertexLabels)
|
void |
switchLayout(JungGraphPanel.GraphLayout type)
|
void |
vertexAdded(edu.uci.ics.jung.graph.event.GraphEvent event)
|
void |
vertexRemoved(edu.uci.ics.jung.graph.event.GraphEvent event)
|
Methods inherited from class edu.uci.ics.jung.visualization.VisualizationViewer |
---|
addChangeListener, addGraphMouseListener, addPostRenderPaintable, addPreRenderPaintable, average, checkOffscreenImage, fireStateChanged, getCenter, getChangeListeners, getGraphLayout, getGraphMouse, getLayoutTransformer, getModel, getOffsetX, getOffsetY, getPickedState, getPickSupport, getRenderer, getRenderingHints, getScaleX, getScaleY, getToolTipText, getTranslateX, getTranslateY, getViewTransformer, init, initMouseClicker, inverseLayoutTransform, inverseTransform, inverseViewTransform, isDoubleBuffered, isPicked, isPicked, isVisRunnerRunning, layoutTransform, pick, prerelax, removeChangeListener, removePostRenderPaintable, removePreRenderPaintable, restart, scale, scale, scaleToLayout, setDoubleBuffered, setGraphLayout, setGraphLayout, setGraphMouse, setLayoutTransformer, setModel, setOffset, setPickedState, setPickSupport, setRenderer, setRenderingHints, setScale, setScale, setTextCallback, setToolTipFunction, setToolTipListener, setTranslate, setViewTransformer, setVisible, start, stateChanged, stop, suspend, transform, translate, unsuspend, viewTransform |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Logger logger
protected edu.uci.ics.jung.graph.Graph graph
Constructor Detail |
---|
public JungGraphPanel()
Method Detail |
---|
public void componentHidden(ComponentEvent e)
componentHidden
in interface ComponentListener
public void componentMoved(ComponentEvent e)
componentMoved
in interface ComponentListener
public void componentResized(ComponentEvent e)
componentResized
in interface ComponentListener
public void componentShown(ComponentEvent e)
componentShown
in interface ComponentListener
public void setGraph(edu.uci.ics.jung.graph.Graph g)
public void renderGraph(Graphics2D g2d)
renderGraph
in interface CanRenderGraph
renderGraph
in class edu.uci.ics.jung.visualization.VisualizationViewer
public final void repaintUI()
repaintUI
in interface CanBeRepainted
public void paintComponent(Graphics g)
paintComponent
in class edu.uci.ics.jung.visualization.VisualizationViewer
public final boolean isShowEdges()
public final void setShowEdges(boolean showEdges)
public final boolean isShowEdgeLabels()
public final void setShowEdgeLabels(boolean showEdgeLabels)
public final boolean isShowVertexLabels()
public final void setShowVertexLabels(boolean showVertexLabels)
public final void exportToPDF(File file)
public final void exportToJPEG(File file)
public final void exportToPNG(File file)
public final void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public final void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public final void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public final void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public final void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void switchLayout(JungGraphPanel.GraphLayout type)
public void edgeAdded(edu.uci.ics.jung.graph.event.GraphEvent event)
edgeAdded
in interface edu.uci.ics.jung.graph.event.GraphEventListener
public void edgeRemoved(edu.uci.ics.jung.graph.event.GraphEvent event)
edgeRemoved
in interface edu.uci.ics.jung.graph.event.GraphEventListener
public void vertexAdded(edu.uci.ics.jung.graph.event.GraphEvent event)
vertexAdded
in interface edu.uci.ics.jung.graph.event.GraphEventListener
public void vertexRemoved(edu.uci.ics.jung.graph.event.GraphEvent event)
vertexRemoved
in interface edu.uci.ics.jung.graph.event.GraphEventListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |