public class AbstractOverlay extends JComponent implements PropertyChangeListener, MouseListener, MouseMotionListener, MouseWheelListener, KeyListener, FocusListener
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static Cursor |
CURSOR_LINE_ADD_NODE |
static Cursor |
CURSOR_LINE_SNAP |
static Cursor |
CURSOR_NODE_ADD |
static Cursor |
CURSOR_NODE_EDIT |
static Cursor |
CURSOR_NODE_SNAP |
static Cursor |
DEFAULT_CURSOR |
static GeometryStyle |
XOR_LINE_STYLE |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOverlay(MapPanel map) |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, 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, 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 static final Cursor CURSOR_LINE_ADD_NODE
public static final Cursor CURSOR_LINE_SNAP
public static final Cursor CURSOR_NODE_ADD
public static final Cursor CURSOR_NODE_EDIT
public static final Cursor CURSOR_NODE_SNAP
public static final Cursor DEFAULT_CURSOR
public static final GeometryStyle XOR_LINE_STYLE
protected AbstractOverlay(MapPanel map)
public void addOverlayActionOverride(String overlayAction, String... overrideOverlayActions)
protected void addUndo(UndoableEdit edit)
protected void appendLocations(StringBuilder text, String title, Map<String,Set<CloseLocation>> vertexLocations)
protected void appendPoint(StringBuilder text, Point point)
public boolean canOverrideOverlayAction(String newAction)
protected void clearMapCursor()
protected void clearMapCursor(Cursor cursor)
public boolean clearOverlayAction(String overlayAction)
protected void clearSnapLocations()
protected void clearUndoHistory()
protected void createPropertyUndo(Object object, String propertyName, Object oldValue, Object newValue)
protected LineString createXorLine(GeometryFactory geometryFactory, Point c0, Point p1)
public void destroy()
protected void drawXorGeometry(Graphics2D graphics)
protected CloseLocation findCloseLocation(AbstractRecordLayer layer, LayerRecord record, Geometry geometry, BoundingBox boundingBox)
protected CloseLocation findCloseLocation(LayerRecord record, BoundingBox boundingBox)
protected CloseLocation findCloseVertexLocation(AbstractRecordLayer layer, LayerRecord record, Geometry geometry, BoundingBox boundingBox)
public void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerprotected double getDistance(MouseEvent event)
protected Point getEventPoint()
protected Point getEventPosition()
protected GeometryFactory getGeometryFactory()
public Graphics2D getGraphics()
getGraphics in class JComponentprotected BoundingBox getHotspotBoundingBox()
protected BoundingBox getHotspotBoundingBox(MouseEvent event)
public int getHotspotPixels()
public MapPanel getMap()
protected Cursor getMapCursor()
public String getOverlayAction()
protected Point getOverlayPoint()
protected Point getPoint(GeometryFactory geometryFactory, MouseEvent event)
protected Point getPoint(int x, int y)
protected Point getPoint(MouseEvent event)
public Project getProject()
protected List<AbstractRecordLayer> getSnapLayers()
public Point getSnapPoint()
public Map<Point,Set<CloseLocation>> getSnapPointLocationMap()
public Viewport2D getViewport()
protected GeometryFactory getViewportGeometryFactory()
public Geometry getXorGeometry()
public boolean hasOverlayAction()
protected boolean hasSnapPoint(BoundingBox boundingBox)
protected boolean hasSnapPoint(Point eventPoint, BoundingBox boundingBox)
protected boolean hasSnapPoint(MouseEvent event, BoundingBox boundingBox)
public boolean isMouseInMap()
public boolean isOverlayAction(String overlayAction)
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenerpublic void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenerpublic void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerprotected void paintComponent(Graphics graphics)
paintComponent in class JComponentprotected void paintComponent(Graphics2D graphics)
public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerprotected void setGeometryFactory(GeometryFactory geometryFactory)
protected void setMapCursor(Cursor cursor)
public boolean setOverlayAction(String overlayAction)
protected boolean setSnapLocations(Map<Point,Set<CloseLocation>> snapLocations)
protected void setSnapPoint(Point snapPoint)
public void setSnapPointIndex(int snapPointIndex)
public void setXorGeometry(Geometry xorGeometry)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.