public class EvaluationGraphPanel
extends javax.swing.JPanel
EvaluationGraphMousePlugin,
Serialized Formjavax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
EvaluationGraphPanel(OptionModelController optionModelController,
EvaluationGraph.IntendedUse intendedUse)
This is the default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportAsImage()
Export the current graph as image by using a file selection dialog.
|
EvaluationGraph |
getEvaluationGraph()
Returns the current evaluation graph.
|
EvaluationGraphPart |
getEvaluationGraphPartSelected()
Returns the currently selected sub graph of the type SparseGraph.
|
java.awt.geom.Rectangle2D |
getGraphSpreadDimension(java.util.Collection<EvaluationGraphNode> graphNodes)
Gets the vertices spread dimension.
|
java.awt.geom.Rectangle2D |
getGraphSpreadDimension(edu.uci.ics.jung.graph.Graph<EvaluationGraphNode,EvaluationGraphEdge> graph)
Gets the graph spread as Rectangle.
|
java.util.Set<EvaluationGraphEdge> |
getPickedEdges()
Gets the Set
|
java.util.Set<EvaluationGraphNode> |
getPickedNodes()
Gets the Set
|
EvaluationGraphEdge |
getPickedSingleEdge()
Returns the edge which is picked.
|
EvaluationGraphNode |
getPickedSingleNode()
Returns the node which is picked.
|
edu.uci.ics.jung.visualization.control.PluggableGraphMouse |
getPluggableGraphMouse()
Gets the PluggableGraphMouse.
|
EvaluationGraphTools |
getStateGraphTools()
Gets the CalcGraphTools.
|
EvaluationGraphVisViewer<EvaluationGraphNode,EvaluationGraphEdge> |
getVisView()
Gets the VisualizationViewer
|
void |
handleObjectDoubleClick(java.lang.Object pickedObject)
Invoked when a graph node or edge is double clicked (left or right)
|
void |
handleObjectLeftClick(java.lang.Object pickedObject)
This method notifies the observers about a graph object selection
|
void |
handleObjectRightClick(java.lang.Object pickedObject)
Notifies the observers that this object is right clicked
|
void |
setEvaluationGraph(EvaluationGraph evaluationGraph)
Sets the specified
EvaluationGraph to the visualisation. |
void |
setEvaluationGraphPartSelected(long timeStamp)
Sets the evaluation graph part selected according to the specified time stamp.
|
void |
setGraphLayout(edu.uci.ics.jung.algorithms.layout.Layout<EvaluationGraphNode,EvaluationGraphEdge> graphLayout)
Sets the graph layout.
|
void |
setGraphMousePicking()
Sets the graph mouse picking.
|
void |
setGraphMouseTransforming()
Sets the graph mouse transforming.
|
void |
setPickedObjects(java.util.Vector<java.lang.Object> objects)
Marks a group of objects as picked
|
void |
zoomFit2Window()
Zoom - fits to window.
|
void |
zoomIn()
Zoom in.
|
void |
zoomOneToOne()
Zoom one to one and move the focus, so that the elements as visible.
|
void |
zoomOut()
Zoom out.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, 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, transferFocusUpCyclepublic EvaluationGraphPanel(OptionModelController optionModelController, EvaluationGraph.IntendedUse intendedUse)
optionModelController - the option model controllerpublic EvaluationGraphTools getStateGraphTools()
public EvaluationGraphVisViewer<EvaluationGraphNode,EvaluationGraphEdge> getVisView()
public edu.uci.ics.jung.visualization.control.PluggableGraphMouse getPluggableGraphMouse()
public void setGraphMousePicking()
public void setGraphMouseTransforming()
public void handleObjectLeftClick(java.lang.Object pickedObject)
pickedObject - The selected objectpublic void handleObjectRightClick(java.lang.Object pickedObject)
pickedObject - the selected objectpublic void handleObjectDoubleClick(java.lang.Object pickedObject)
pickedObject - public void setPickedObjects(java.util.Vector<java.lang.Object> objects)
objects - The objectspublic EvaluationGraphNode getPickedSingleNode()
public java.util.Set<EvaluationGraphNode> getPickedNodes()
public EvaluationGraphEdge getPickedSingleEdge()
public java.util.Set<EvaluationGraphEdge> getPickedEdges()
public void exportAsImage()
public void zoomIn()
public void zoomOut()
public void zoomOneToOne()
public void zoomFit2Window()
public java.awt.geom.Rectangle2D getGraphSpreadDimension(edu.uci.ics.jung.graph.Graph<EvaluationGraphNode,EvaluationGraphEdge> graph)
graph - the graphpublic java.awt.geom.Rectangle2D getGraphSpreadDimension(java.util.Collection<EvaluationGraphNode> graphNodes)
graphNodes - the graph nodespublic void setEvaluationGraph(EvaluationGraph evaluationGraph)
EvaluationGraph to the visualisation.evaluationGraph - the new evaluation graphpublic EvaluationGraph getEvaluationGraph()
public void setEvaluationGraphPartSelected(long timeStamp)
timeStamp - the new evaluation graph part selectedpublic EvaluationGraphPart getEvaluationGraphPartSelected()
public void setGraphLayout(edu.uci.ics.jung.algorithms.layout.Layout<EvaluationGraphNode,EvaluationGraphEdge> graphLayout)
graphLayout - the graph layout