|
||||||||||
| 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
com.nwoods.jgo.JGoView
com.nwoods.jgo.JGoOverview
A simple overview window, displaying another JGoView's document at a reduced scale, and allowing navigation by the user.
This view can be used once you call setObserved with another JGoView. This overview displays a rectangle that indicates the position and extent of the Observed's view onto the document. The user can change the position of the Observed view in the document by either dragging the rectangle or clicking.
The user cannot select objects in this view, nor can the user drop something from another window or drag something out of this window. This overview does display tooltips for objects, to make it easier for users to tell where they are.
| Nested Class Summary |
| Nested classes inherited from class com.nwoods.jgo.JGoView |
JGoView.JGoViewCanvas |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class com.nwoods.jgo.JGoView |
ChangedDimensions, ChangedOrigin, ChangedPen, ChangedSnapMove, ChangedSnapResize, ChangedSpot, ChangedStyle, DebugEvents, EventMouseDown, EventMouseMove, EventMouseUp, GridCross, GridDot, GridInvisible, GridLine, MouseStateAction, MouseStateCreateLink, MouseStateCreateLinkFrom, MouseStateDragBoxSelection, MouseStateLast, MouseStateMove, MouseStateNone, MouseStateResize, MouseStateSelection, NoSnap, SnapAfter, SnapJump |
| 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.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JGoOverview()
Construct an overview window displaying objects at one eighth scale. |
|
| Method Summary | |
int |
computeAcceptableDrop(java.awt.dnd.DropTargetDragEvent e)
Disallow dragging from other windows to here. |
void |
doBackgroundClick(int modifiers,
java.awt.Point dc,
java.awt.Point vc)
Clicking somewhere other than in the overview rectangle will move the view to be centered at that point. |
JGoDocument |
getDocument()
Make sure this is always looking at the same document as the observed's document. |
java.awt.Dimension |
getDocumentSize()
Ignore any view objects. |
JGoView |
getObserved()
Get the JGoView that is being watched/tracked. |
JGoOverviewRectangle |
getOverviewRect()
Returns the rectangle in this view that the user drags to change the ViewPosition of the observed view. |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent evt)
Show tooltips, so users might get a clue about which object is which even though the objects are so small. |
boolean |
isDropFlavorAcceptable(java.awt.dnd.DropTargetDragEvent e)
Leave drag-and-drop enabled for autoscrolling, but don't allow any drops here. |
boolean |
isIncludingNegativeCoords()
This is true if the Observed view's isIncludeNegativeCoords() is true. |
JGoObject |
pickDocObject(java.awt.Point pointToCheck,
boolean selectableOnly)
Ignore all document objects; only the JGoOverviewRectangle can be selected. |
void |
removeNotify()
When the Overview window is no longer needed, make sure the observed view doesn't keep any references to this view. |
void |
selectInBox(java.awt.Rectangle rect)
Don't allow anything to be selected by user's rubber band either. |
void |
setObserved(JGoView observed)
Set the view that this overview is supposed to observe. |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, 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, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, 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 |
public JGoOverview()
| Method Detail |
public void removeNotify()
public void setObserved(JGoView observed)
observed - a JGoView that must not be a JGoOverview, but may
be null to turn this overview "off"/blankpublic JGoView getObserved()
public boolean isDropFlavorAcceptable(java.awt.dnd.DropTargetDragEvent e)
isDropFlavorAcceptable in class JGoViewpublic int computeAcceptableDrop(java.awt.dnd.DropTargetDragEvent e)
computeAcceptableDrop in class JGoViewpublic JGoOverviewRectangle getOverviewRect()
public JGoObject pickDocObject(java.awt.Point pointToCheck,
boolean selectableOnly)
pickDocObject in class JGoViewpointToCheck - the point under which to find the object, in
document coordinatesselectableOnly - if true, consider only selectable objectspublic void selectInBox(java.awt.Rectangle rect)
selectInBox in class JGoViewrect - the Rectangle, in document coordinates
public void doBackgroundClick(int modifiers,
java.awt.Point dc,
java.awt.Point vc)
doBackgroundClick in class JGoViewpublic JGoDocument getDocument()
getDocument in class JGoViewpublic java.awt.Dimension getDocumentSize()
getDocumentSize in class JGoViewpublic boolean isIncludingNegativeCoords()
isIncludingNegativeCoords in class JGoViewpublic java.lang.String getToolTipText(java.awt.event.MouseEvent evt)
Note that it might not be possible for the user to position the mouse pointer over every objects, because thin objects may take less than one pixel.
getToolTipText in class JGoViewevt - the mouse event generated when passing over the canvas.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||