Class ButtonOverlayView
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.graffiti.plugin.view.AbstractView
org.graffiti.plugins.views.defaults.GraffitiView
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.ipk_graffitiview.IPKGraffitiView
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.ipk_graffitiview.ButtonOverlayView
- All Implemented Interfaces:
PaintStatusSupport
,Autoscroll
,ImageObserver
,MenuContainer
,Printable
,Serializable
,EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,OptionPane
,PreferencesInterface
,GraphView
,View
,View2D
,Zoomable
,ZoomListener
public class ButtonOverlayView extends IPKGraffitiView
An implementation of
org.graffiti.plugin.view.View2D
, that
displays a graph. Since it also shows changes in the graph it listens for
changes in the graph, attributes, nodes and edges.- See Also:
JPanel
,View2D
, Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
-
Field Summary
Fields inherited from class de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.ipk_graffitiview.IPKGraffitiView
PARAM_DRAW_GRID, PARAM_MAX_EDGES, PARAM_MAX_NODES, printInProgress
Fields inherited from class org.graffiti.plugins.views.defaults.GraffitiView
isFinishingTransacation, threadedRedraw
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
Constructor Summary
Constructors Constructor Description ButtonOverlayView()
-
Method Summary
Modifier and Type Method Description JComponent
getViewComponent()
Returns the main component of the view.String
getViewName()
Returns the viewName.JComponent
getViewToolbarComponentBackground()
Object
getViewToolbarComponentBottom()
Object
getViewToolbarComponentLeft()
Object
getViewToolbarComponentRight()
Object
getViewToolbarComponentTop()
boolean
putInScrollPane()
Methods inherited from class de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.ipk_graffitiview.IPKGraffitiView
close, getCategory, getDefaultParameters, getOptionDialogComponent, getOptionName, getPreferencesAlternativeName, getUseAntialiasingSetting, init, paint, postAttributeChanged, postNodeAdded, postNodeRemoved, print, repaint, save, setGraph, setStatusProvider, statusDrawInProgress, transactionFinished, updatePreferences
Methods inherited from class org.graffiti.plugins.views.defaults.GraffitiView
addMessageListener, addMouseListener, addMouseMotionListener, attributeChanged, completeRedraw, findComponentAt, getBlockEdges, getComponentAt, getComponentOfAnyTypeAt, getCoordinateSystem, getDetachedFrames, getDrawMode, getGraphics, getSortedGraphElements, isHidden, postAttributeAdded, postAttributeRemoved, postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postSourceNodeChanged, postTargetNodeChanged, preSourceNodeChanged, preTargetNodeChanged, redrawActive, remove, removeMessageListener, removeMouseListener, removeMouseMotionListener, repaint, repaintGraphElementComponent, setBlockEdges, setDrawMode, sortGraphElements, transactionStarted, zoomChanged
Methods inherited from class org.graffiti.plugin.view.AbstractView
autoresize, autoscroll, clearGraphElementComponentMap, closing, getAttributeComponentsForElement, getAutoscrollInsets, getComponentElementMap, getComponentForElement, getGraph, getGraphElementComponent, getGraphElementComponentMap, getZoom, postInEdgeAdded, postInEdgeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preAttributeAdded, preAttributeChanged, preAttributeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, removeGraphElementComponent, setAttributeComponentManager, worksWithTab
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, getComponent, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.graffiti.event.AttributeListener
preAttributeAdded, preAttributeChanged, preAttributeRemoved
Methods inherited from interface java.awt.dnd.Autoscroll
autoscroll, getAutoscrollInsets
Methods inherited from interface org.graffiti.event.EdgeListener
preDirectedChanged, preEdgeReversed
Methods inherited from interface org.graffiti.event.GraphListener
preEdgeAdded, preEdgeRemoved, preGraphCleared, preNodeAdded, preNodeRemoved
Methods inherited from interface org.graffiti.event.NodeListener
postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preUndirectedEdgeAdded, preUndirectedEdgeRemoved
Methods inherited from interface org.graffiti.options.OptionPane
getName
Methods inherited from interface org.graffiti.plugin.view.View
closing, getAttributeComponentsForElement, getComponentElementMap, getComponentForElement, getGraph, setAttributeComponentManager, worksWithTab
-
Constructor Details
-
ButtonOverlayView
public ButtonOverlayView()
-
-
Method Details
-
getViewToolbarComponentTop
- Specified by:
getViewToolbarComponentTop
in interfaceView
- Overrides:
getViewToolbarComponentTop
in classAbstractView
- Returns:
- Null, or a Double Object specifying the height (or a TableLayout-constant) of empty space or a JComponent, placed above the graph view and sized according to its preferred height, the full width of the window is used.
-
getViewToolbarComponentBottom
- Specified by:
getViewToolbarComponentBottom
in interfaceView
- Overrides:
getViewToolbarComponentBottom
in classAbstractView
- Returns:
- Null, or a Double Object specifying the height (or a TableLayout-constant) of empty space or a JComponent, placed below the graph view and sized according to its preferred height, the full width of the window is used.
-
getViewToolbarComponentLeft
- Specified by:
getViewToolbarComponentLeft
in interfaceView
- Overrides:
getViewToolbarComponentLeft
in classAbstractView
- Returns:
- Null, or a Double Object specifying the width (or a TableLayout-constant) of empty space or a JComponent, placed left of the graph view and sized according to its preferred height, the height of graph view next to the component is used.
-
getViewToolbarComponentRight
- Specified by:
getViewToolbarComponentRight
in interfaceView
- Overrides:
getViewToolbarComponentRight
in classAbstractView
- Returns:
- Null, or a Double Object specifying the width (or a TableLayout-constant) of empty space or a JComponent, placed to the right of the graph view and sized according to its preferred height, the height of graph view next to the component is used.
-
getViewToolbarComponentBackground
- Specified by:
getViewToolbarComponentBackground
in interfaceView
- Overrides:
getViewToolbarComponentBackground
in classAbstractView
- Returns:
- Either null or JComponent, placed behind the graph view. The size corresponds to the window size. Certain components may draw over the graph view, resulting in redraw bugs. But a simple JComponent with hand-made paint-code should work fine.
-
putInScrollPane
public boolean putInScrollPane()- Specified by:
putInScrollPane
in interfaceView
- Overrides:
putInScrollPane
in classGraffitiView
-
getViewComponent
Description copied from interface:View
Returns the main component of the view.- Specified by:
getViewComponent
in interfaceView
- Overrides:
getViewComponent
in classAbstractView
- Returns:
- the main component of the view.
- See Also:
View.getViewComponent()
-
getViewName
Description copied from class:AbstractView
Returns the viewName.- Specified by:
getViewName
in interfaceView
- Overrides:
getViewName
in classIPKGraffitiView
- Returns:
- String
-