y.view
Class Overview

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--y.view.Graph2DView
                          |
                          +--y.view.Overview
All Implemented Interfaces:
AnimationListener, EventListener, ImageObserver, MenuContainer, PropertyChangeListener, ScrollPaneConstants, Serializable, View, View2DConstants, ViewContainer

public class Overview
extends Graph2DView
implements PropertyChangeListener

This is a specialized View which acts as Overview. The View displays always the entire Graph. Additionally it highlights the region that the associated Graph2DView currently displays.

The OverView has a specialized ViewMode associated with it that allows to change the viewport of the associated Graph2DView by dragging the highlighted area.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class y.view.Graph2DView
BG_LAYER, FG_LAYER, LAYER_MODE, MOVE_SELECTION_MODE, NORMAL_MODE, SELECTION_BOX_MODE, UNBUFFERED_MODE
 
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 javax.swing.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
 
Fields inherited from interface y.view.View2DConstants
GRID_CROSS, GRID_LINES, GRID_NONE, GRID_POINTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Overview(Graph2DView view)
          Create a new Overview for a given Graph2DView.
 
Method Summary
 void paint(Graphics g)
           
 void propertyChange(PropertyChangeEvent ev)
          Updates the view upon receiving a property change event.
 void reshape(int x, int y, int w, int h)
          Called on resize events
 void updateView()
          Updates the View.
 
Methods inherited from class y.view.Graph2DView
addBackgroundDrawable, addDrawable, addViewChangeListener, addViewMode, adjustScrollBarVisibility, animationPerformed, fitContent, fitRectangle, fitWorldRect, focusView, getBackgroundRenderer, getCanvasComponent, getCanvasSize, getCenter, getComponent, getCurrentView, getFitContentOnResize, getFrame, getGraph2D, getGraph2DRenderer, getGridColor, getGridMode, getGridResolution, getGridType, getHorizontalScrollBarPolicy, getImage, getPaintDetailThreshold, getVerticalScrollBarPolicy, getVerticalScrollBarPolicy, getViewControl, getViewCursor, getViewPoint, getViewPoint2D, getViewSize, getVisibleRect, getWorldRect, getZoom, gridCursorActive, isAntialiasedPainting, isFocusTraversable, isGridVisible, isValidateRoot, openLabelEditor, openLabelEditor, openLabelEditor, paintVisibleContent, print, registerKeyboardAction, registerKeyboardAction, removeBackgroundDrawable, removeDrawable, removeViewMode, requestFocus, setAntialiasedPainting, setBackgroundRenderer, setBounds, setCenter, setDrawingMode, setFitContentOnResize, setGraph2D, setGraph2DRenderer, setGridColor, setGridCursorPosition, setGridMode, setGridResolution, setGridType, setGridVisible, setHorizontalScrollBarPolicy, setPaintDetailThreshold, setScrollBarPolicy, setSecureDrawingMode, setSelectionBoxBounds, setSelectionBoxBounds2D, setToolTipText, setViewControl, setViewCursor, setViewPoint, setViewPoint2D, setWorldRect, setZoom, showPopup, toViewCoordX, toViewCoordY, toWorldCoordX, toWorldCoordY, unregisterKeyboardAction, updateWorldRect, zoomToArea
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Overview

public Overview(Graph2DView view)
Create a new Overview for a given Graph2DView.

Method Detail

updateView

public void updateView()
Updates the View.

Specified by:
updateView in interface View
Overrides:
updateView in class Graph2DView

paint

public void paint(Graphics g)
Overrides:
paint in class JComponent

reshape

public void reshape(int x,
                    int y,
                    int w,
                    int h)
Called on resize events

Overrides:
reshape in class JComponent

propertyChange

public void propertyChange(PropertyChangeEvent ev)
Updates the view upon receiving a property change event.

Specified by:
propertyChange in interface PropertyChangeListener

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003