public class OverView extends View
javax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_KEY |
protected java.awt.Dimension |
prefSize |
protected OrientedRectangle |
region |
protected Style |
style |
protected ViewManager |
viewManager |
currentTool, eventDispatcher, graphicsRef, layerAdapter, mouseOverManager, offImage, panSmoothToRedrawRect, PROPERTY_DISPLAY_UNIT, PROPERTY_DISTANCE_UNIT, PROPERTY_MAP_ROTATION, PROPERTY_MAP_UNIT, PROPERTY_MOUSEOVER_DISABLED, PROPERTY_VIEW_NAME, renderer, viewName, viewOverlay, viewPopupMenulistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
OverView(ViewManager viewManager)
Creates a new OverView using the specified view manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees resources used by the view.
|
void |
fireViewChanged() |
java.awt.Dimension |
getPreferredSize()
This method returns the preferred size of the OverView
|
void |
paint(java.awt.Graphics g)
Paint on the graphic
|
void |
redraw(OrientedRectangle WCRegion,
int drawOptions,
boolean stopDrawing,
boolean updateViewGraphics)
Redraws the current view using the specified draw options.
|
void |
reinitialize(View view) |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the view bounds.
|
void |
setEnabled(boolean enabled) |
void |
setFixedZoom(OrientedRectangle fixedZoom)
Sets the zoom to the specified WC region.
|
void |
setPreferredSize(java.awt.Dimension dim)
This method sets the preferred size of the OverView
|
void |
this_layerPropertyChangedEvent(LayerPropertyChangedEvent e)
Handler for LayerPropertyChangedEvent events.
|
void |
this_layerStyleChangedEventOccurred(LayerStyleChangedEvent e)
Handles layer style change events.
|
void |
this_mouseDragged(java.awt.event.MouseEvent e)
This method handles mouse dragged event
|
void |
this_mouseMoved(java.awt.event.MouseEvent e)
Event handler for mouse move events.
|
void |
this_mousePressed(java.awt.event.MouseEvent e)
Event handler for mouse down events.
|
void |
this_mouseReleased(java.awt.event.MouseEvent e)
Event handler for mouse up events.
|
protected void |
updateRegion(OrientedRectangle region)
This does not draw anything.
|
addMarker, addPopupMenuAction, addPopupMenuItem, addPopupMenuSeparator, addStaticElement, addStaticImage, addViewEventListener, applySettings, clearMarkers, createOffImage, dispatchEvent, draw, draw, drawStaticElements, drawVolatileElement, drawVolatileElements, drawVolatileElements, firePopupMenuShowingEvent, fireToolChangedEvent, fireViewRedrawOccurredEvent, fireViewRepaintOccurredEvent, getCenterOfView, getCurrentTool, getDCViewBounds, getDisplayUnit, getDistanceUnit, getGraphicsManager, getInitialViewBounds, getLayerManager, getMapProjection, getMapUnit, getMaxViewBounds, getMeasurementProjection, getMouseOverManager, getRenderer, getRotation, getScaleFactor, getScaleFactor, getScaleValidator, getStaticElements, getTransform, getVerbose, getViewGraphicsRef, getViewName, getViewOverlay, getViewSettings, getViewState, getWCViewBounds, getZoomLevel, initEventDispatcher, isBusy, isMouseInside, isRefreshable, moveBackward, moveForward, moveTo, moveTo, pan, panSmooth, panSmooth, redraw, redraw, redraw, refresh, removeMarker, removePopupMenuAction, removePopupMenuItem, removeStaticElement, removeViewEventListener, resetVolatileImageLastBounds, setCurrentTool, setDisplayUnit, setDistanceUnit, setInitialViewBounds, setLayerManager, setLayerRefreshManagerView, setMapUnit, setMaximumScale, setMaxViewBounds, setRefreshable, setRotation, setScale, setScaleValidator, setVerbose, setViewName, this_layerAddedEventOccurred, this_layerPosChangedEventOccurred, this_layerReceivedDataEventOccurred, this_layerRefreshRequestEvent, this_layerRemovedEventOccurred, this_mouseClicked, this_mouseEntered, this_mouseExited, zoom, zoom, zoom, zoom, zoomExtent, zoomToRectaddAncestorListener, 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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, 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, 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, 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, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final java.lang.String COMPONENT_KEY
protected ViewManager viewManager
protected OrientedRectangle region
protected Style style
protected java.awt.Dimension prefSize
public OverView(ViewManager viewManager)
viewManager - the view manager to use.public void close()
Viewpublic void reinitialize(View view)
protected void updateRegion(OrientedRectangle region)
region - public void redraw(OrientedRectangle WCRegion, int drawOptions, boolean stopDrawing, boolean updateViewGraphics)
Viewredraw in class ViewWCRegion - the region to redraw.drawOptions - a bit field value that specifies what to draw.stopDrawing - defines whether or not the drawing thread should be stopped
drawing before redrawing the view. However, this flag has not
effect on a synchronized redraw.updateViewGraphics - defines whether or not the redraw should update the view graphics
(false will only affect the offImage)public void paint(java.awt.Graphics g)
Viewpublic void this_mouseMoved(java.awt.event.MouseEvent e)
Viewthis_mouseMoved in class Viewe - the mouse event.public void this_mousePressed(java.awt.event.MouseEvent e)
Viewthis_mousePressed in class Viewe - the mouse event.public void this_mouseReleased(java.awt.event.MouseEvent e)
Viewthis_mouseReleased in class Viewe - the mouse event.public void this_mouseDragged(java.awt.event.MouseEvent e)
this_mouseDragged in class Viewe - the corresponding mouse eventpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic void setPreferredSize(java.awt.Dimension dim)
setPreferredSize in class javax.swing.JComponentdim - the preferred size to set the OverView.public void setFixedZoom(OrientedRectangle fixedZoom)
null value will reset to
the default behavior.fixedZoom - a WC region. null to reset to default behavior.public void this_layerPropertyChangedEvent(LayerPropertyChangedEvent e)
Viewthis_layerPropertyChangedEvent in class Viewe - the received event.public void this_layerStyleChangedEventOccurred(LayerStyleChangedEvent e)
Viewthis_layerStyleChangedEventOccurred in class Viewe - the corresponding LayerStyleChangedEventpublic void setEnabled(boolean enabled)
setEnabled in class javax.swing.JComponentpublic void fireViewChanged()
fireViewChanged in class Viewpublic void setBounds(int x,
int y,
int width,
int height)
View