|
||||||||||
| 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.bbn.openmap.Layer
fr.ifremer.isisfish.map.ZoneDelimiterLayer
fr.ifremer.isisfish.map.CellSelectionLayer
public class CellSelectionLayer
Ce layer permet de dessinner un cadrillage avec une latitude/longitude max et min,
ainsi qu'un pas de maille. Dans ce cadrillage, il est ensuite possible de selectionner
des carres. Cette selection peut se faire avec la souris. Il y a diiferents mode de
de selections qui sont NO_SELECTION, SINGLE_SELECTION et
MULT_SELECTION.
Created: Mon Jan 21 13:42:55 2002
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class fr.ifremer.isisfish.map.ZoneDelimiterLayer |
|---|
cells, fisheryRegion, graphics, pasMailleLatitude, pasMailleLongitude, proj |
| Fields inherited from class com.bbn.openmap.Layer |
|---|
addAsBackground, AddAsBackgroundProperty, addToBeanContext, AddToBeanContextProperty, attributes, autoPalette, AutoPaletteProperty, beanContextChildSupport, coordTransform, DataPathPrefixProperty, DisplayPaletteCmd, DisplayPropertiesCmd, doHack, HidePaletteCmd, i18n, localHackList, maxScale, MaxScaleProperty, minScale, MinScaleProperty, palette, paletteListener, PrettyNameProperty, propertyPrefix, RedrawCmd, removable, RemovableProperty, SWING_PACKAGE, TransformProperty, windowSupport |
| 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 com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CellSelectionLayer(FisheryRegion fisheryRegion,
int selectionMode)
|
|
| Method Summary | |
|---|---|
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 tton 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. |
| Methods inherited from class fr.ifremer.isisfish.map.ZoneDelimiterLayer |
|---|
commit, generateGraphics, getProjection, paint, projectionChanged, refresh, renderDataForProjection, rollback, setProjection |
| Methods inherited from class com.bbn.openmap.Layer |
|---|
actionPerformed, addComponentListener, added, addInfoDisplayListener, addLayerStatusListener, addMouseListener, addVetoableChangeListener, childrenAdded, childrenRemoved, clearListeners, connectToBeanContext, createWindowSupport, disconnectFromBeanContext, dispose, finalize, 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, 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, setRemovable, setVisible, setWindowSupport, showPalette |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.beans.beancontext.BeanContextChild |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected int selectionMode
public static final int NO_SELECTION
public static final int SINGLE_SELECTION
public static final int MULT_SELECTION
| Constructor Detail |
|---|
public CellSelectionLayer(FisheryRegion fisheryRegion,
int selectionMode)
throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaException| Method Detail |
|---|
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 correspondant
public 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 correspondant
public boolean select(float latitude,
float longitude)
latitude - la latitude du pointlongitude - la longitude du point
public boolean unSelect(com.bbn.openmap.proj.coords.LatLonPoint pt)
pt - le point pour lequel on cherche le carre correspondant
public boolean unSelect(float latitude,
float longitude)
latitude - la latitude du pointlongitude - la longitude du point
public String[] getMouseModeServiceList()
return new String[1] {
SelectMouseMode.modeID
};
- Specified by:
getMouseModeServiceList in interface com.bbn.openmap.event.MapMouseListener
- See Also:
NavMouseMode.modeID,
SelectMouseMode.modeID,
NullMouseMode.modeID
public com.bbn.openmap.event.MapMouseListener getMapMouseListener()
getMapMouseListener in class com.bbn.openmap.Layerpublic boolean mousePressed(MouseEvent e)
mousePressed in interface com.bbn.openmap.event.MapMouseListenere - MouseEvent
public boolean mouseReleased(MouseEvent e)
mouseReleased in interface com.bbn.openmap.event.MapMouseListenere - MouseEvent
public 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.MapMouseListenere - MouseListener MouseEvent to handle.
public void mouseEntered(MouseEvent e)
mouseEntered in interface com.bbn.openmap.event.MapMouseListenere - MouseListener MouseEvent to handle.public void mouseExited(MouseEvent e)
mouseExited in interface com.bbn.openmap.event.MapMouseListenere - MouseListener MouseEvent to handle.public boolean mouseDragged(MouseEvent e)
mouseDragged in interface com.bbn.openmap.event.MapMouseListenere - MouseMotionListener MouseEvent to handle.
public boolean mouseMoved(MouseEvent e)
mouseMoved in interface com.bbn.openmap.event.MapMouseListenere - MouseListener MouseEvent to handle.
public void mouseMoved()
mouseMoved in interface com.bbn.openmap.event.MapMouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||