public class CellSelectionLayer extends ZoneDelimiterLayer implements com.bbn.openmap.event.MapMouseListener
NO_SELECTION
, SINGLE_SELECTION
et
MULT_SELECTION
.
Created: Mon Jan 21 13:42:55 2002JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
MULT_SELECTION
Multi selection enabled.
|
static int |
NO_SELECTION
No selection enabled.
|
protected int |
selectionMode
Current layer selection mode.
|
static int |
SINGLE_SELECTION
Only single celle selection enabled.
|
cells, graphics, mapDataProvider, pasMailleLatitude, pasMailleLongitude, proj
addAsBackground, AddAsBackgroundProperty, addToBeanContext, AddToBeanContextProperty, attributes, autoPalette, AutoPaletteProperty, beanContextChildSupport, coordTransform, DataPathPrefixProperty, DisplayPaletteCmd, DisplayPropertiesCmd, doHack, HidePaletteCmd, i18n, localHackList, maxScale, MaxScaleProperty, minScale, MinScaleProperty, palette, paletteListener, PrettyNameProperty, propertyPrefix, readyToPaint, RedrawCmd, removable, RemovableProperty, SWING_PACKAGE, TransformProperty, windowSupport
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
CellSelectionLayer(MapDataProvider mapDataProvider,
int selectionMode) |
Modifier and Type | Method and Description |
---|---|
com.bbn.openmap.omGraphics.OMRect |
findXY(com.bbn.openmap.proj.coords.LatLonPoint pt)
Permet de retrouver le carre incluant le point donne.
|
com.bbn.openmap.event.MapMouseListener |
getMapMouseListener()
Note: A layer interested in receiving amouse events should
implement this function .
|
String[] |
getMouseModeServiceList()
Return a list of the modes that are interesting to the
MapMouseListener.
|
List<com.bbn.openmap.proj.coords.LatLonPoint> |
getSelected()
Renvoie tous les carres selectionnes.
|
int |
getSelectionMode()
Get the value of selectionMode.
|
boolean |
mouseClicked(MouseEvent e)
Invoked when the mouse has been clicked on a component.
|
boolean |
mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then
dragged.
|
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters a component.
|
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mouseMoved()
Handle a mouse cursor moving without the button being pressed.
|
boolean |
mouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component
(with no buttons no down).
|
boolean |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
boolean |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.
|
boolean |
select(float latitude,
float longitude)
Permet de selectionner le carre incluant le point donne en latitude et longitude.
|
boolean |
select(com.bbn.openmap.proj.coords.LatLonPoint pt)
Permet de selectionner le carre incluant le point donne.
|
void |
setSelectionMode(int v)
Set the value of selectionMode.
|
boolean |
unSelect(float latitude,
float longitude)
Permet de deselectionner le carre incluant le point donne en latitude et longitude.
|
boolean |
unSelect(com.bbn.openmap.proj.coords.LatLonPoint pt)
Permet de deselectionner le carre incluant le point donne.
|
void |
unSelectAll()
Deselectionne tous les carres.
|
finalize, generateGraphics, getProjection, paint, projectionChanged, refresh, regionChanged, renderDataForProjection, setProjection
actionPerformed, addComponentListener, added, addInfoDisplayListener, addLayerStatusListener, addMouseListener, addVetoableChangeListener, childrenAdded, childrenRemoved, clearListeners, connectToBeanContext, createWindowSupport, disconnectFromBeanContext, dispose, findAndInit, findAndInit, findAndUndo, fireHideToolTip, firePaletteEvent, fireRequestBrowserContent, fireRequestBrowserContent, fireRequestCursor, fireRequestInfoLine, fireRequestInfoLine, fireRequestInfoLine, fireRequestMessage, fireRequestMessage, fireRequestToolTip, fireRequestToolTip, fireRequestURL, fireRequestURL, fireStatusUpdate, fireStatusUpdate, fireVetoableChange, getAddAsBackground, getAddToBeanContext, getAttribute, getBeanContext, getCoordTransform, getGUI, getIcon, getMaxScale, getMinScale, getPackage, getPalette, getProperties, getPropertyInfo, getPropertyPrefix, getWindowSupport, hasGUI, hidePalette, isAutoPalette, isProjectionOK, isReadyToPaint, isRemovable, notifyHideHack, prependDataPathPrefix, putAttribute, removeComponentListener, removeConfirmed, removed, removeInfoDisplayListener, removeLayerStatusListener, removeVetoableChangeListener, repaint, resetPalette, setAddAsBackground, setAddToBeanContext, setAutoPalette, setBeanContext, setCoordTransform, setIcon, setLayerProperties, setMaxScale, setMinScale, setName, setPaletteVisible, setProjection, setProperties, setProperties, setPropertyPrefix, setReadyToPaint, setRemovable, setVisible, setWindowSupport, showPalette
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, 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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, 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, unregisterKeyboardAction, update, updateUI
add, 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, validateTree
action, add, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, 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, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
protected int selectionMode
public static final int NO_SELECTION
public static final int SINGLE_SELECTION
public static final int MULT_SELECTION
public CellSelectionLayer(MapDataProvider mapDataProvider, int selectionMode) throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaException
public int getSelectionMode()
public void setSelectionMode(int v)
v
- Value to assign to selectionMode.public com.bbn.openmap.omGraphics.OMRect findXY(com.bbn.openmap.proj.coords.LatLonPoint pt)
pt
- le point pour lequel on cherche le carre correspondantpublic List<com.bbn.openmap.proj.coords.LatLonPoint> getSelected()
public void unSelectAll()
public boolean select(com.bbn.openmap.proj.coords.LatLonPoint pt)
pt
- le point pour lequel on cherche le carre correspondantpublic boolean select(float latitude, float longitude)
latitude
- la latitude du pointlongitude
- la longitude du pointpublic boolean unSelect(com.bbn.openmap.proj.coords.LatLonPoint pt)
pt
- le point pour lequel on cherche le carre correspondantpublic boolean unSelect(float latitude, float longitude)
latitude
- la latitude du pointlongitude
- la longitude du pointpublic String[] getMouseModeServiceList()
return new String[1] { SelectMouseMode.modeID };
getMouseModeServiceList
in interface com.bbn.openmap.event.MapMouseListener
NavMouseMode.modeID
,
SelectMouseMode.modeID
,
NullMouseMode.modeID
public com.bbn.openmap.event.MapMouseListener getMapMouseListener()
getMapMouseListener
in class com.bbn.openmap.Layer
public boolean mousePressed(MouseEvent e)
mousePressed
in interface com.bbn.openmap.event.MapMouseListener
e
- MouseEventpublic boolean mouseReleased(MouseEvent e)
mouseReleased
in interface com.bbn.openmap.event.MapMouseListener
e
- MouseEventpublic boolean mouseClicked(MouseEvent e)
mousePressed()
, or if no other listener
processes the event. If the listener successfully processes
mouseClicked(), then it will receive the next mouseClicked()
notifications that have a click count greater than one.mouseClicked
in interface com.bbn.openmap.event.MapMouseListener
e
- MouseListener MouseEvent to handle.public void mouseEntered(MouseEvent e)
mouseEntered
in interface com.bbn.openmap.event.MapMouseListener
e
- MouseListener MouseEvent to handle.public void mouseExited(MouseEvent e)
mouseExited
in interface com.bbn.openmap.event.MapMouseListener
e
- MouseListener MouseEvent to handle.public boolean mouseDragged(MouseEvent e)
mouseDragged
in interface com.bbn.openmap.event.MapMouseListener
e
- MouseMotionListener MouseEvent to handle.public boolean mouseMoved(MouseEvent e)
mouseMoved
in interface com.bbn.openmap.event.MapMouseListener
e
- MouseListener MouseEvent to handle.public void mouseMoved()
mouseMoved
in interface com.bbn.openmap.event.MapMouseListener
Copyright © 1999–2020 CodeLutin. All rights reserved.