Package fr.ifremer.isisfish.map
Class ResultatLayer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.bbn.openmap.Layer
com.bbn.openmap.layer.OMGraphicHandlerLayer
fr.ifremer.isisfish.map.ResultatLayer
- All Implemented Interfaces:
com.bbn.openmap.event.MapMouseListener
,com.bbn.openmap.event.ProjectionListener
,com.bbn.openmap.omGraphics.event.GestureResponsePolicy
,com.bbn.openmap.omGraphics.OMGraphicHandler
,com.bbn.openmap.ProjectionPainter
,com.bbn.openmap.PropertyConsumer
,ActionListener
,ImageObserver
,MenuContainer
,BeanContextChild
,BeanContextMembershipListener
,Serializable
,EventListener
public class ResultatLayer
extends com.bbn.openmap.layer.OMGraphicHandlerLayer
implements com.bbn.openmap.event.MapMouseListener
ResultatLayer.java
Created: Mon Apr 15 15:14:40 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
Modifier and TypeFieldDescriptionprotected DataMapList
protected com.bbn.openmap.omGraphics.OMGraphicList
protected JPanel
protected com.bbn.openmap.proj.Projection
Fields inherited from class com.bbn.openmap.layer.OMGraphicHandlerLayer
consumeEvents, ConsumeEventsProperty, filter, interruptable, InterruptableProperty, layerWorker, LAYERWORKER_LOCK, layerWorkerQueue, logger, mouseEventInterpreter, mouseModeIDs, MouseModesProperty, projectionChangePolicy, ProjectionChangePolicyProperty, renderPolicy, RenderPolicyProperty, selectedList, TransparencyProperty
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, paletteListener, PrettyNameProperty, propertyPrefix, readyToPaint, RedrawCmd, removable, RemovableProperty, SWING_PACKAGE, TransformProperty, windowSupport
Fields inherited from class javax.swing.JComponent
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
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface com.bbn.openmap.PropertyConsumer
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataMap
(DataMap data) Add a DataMap to this layer.protected void
Create and project the graphics.Creer l ensemble des carres possible et affiche le cadrillage.Get the DataMapList in this layer.getGUI()
Palette associated to the layercom.bbn.openmap.event.MapMouseListener
Note: A layer interested in receiving amouse events should implement this function .String[]
Return a list of the modes that are interesting to the MapMouseListener.com.bbn.openmap.proj.Projection
Get the projection.void
Hide the layer's palette.boolean
Invoked when the mouse has been clicked on a component.boolean
Invoked when a mouse button is pressed on a component and then dragged.void
Invoked when the mouse enters a component.void
Invoked when the mouse exits a component.void
Handle a mouse cursor moving without the button being pressed.boolean
Invoked when the mouse button has been moved on a component (with no buttons no down).boolean
Invoked when a mouse button has been pressed on a component.boolean
Invoked when a mouse button has been released on a component.void
Paints the layer.void
projectionChanged
(com.bbn.openmap.event.ProjectionEvent e) Invoked when the projection has changed or this Layer has been added to the MapBean.void
renderDataForProjection
(com.bbn.openmap.proj.Projection proj, Graphics g) Implementing the ProjectionPainter interface.void
setDataMapList
(DataMapList list) Set the dataMapList.void
setMatriceInfo
(org.nuiton.math.matrix.MatrixND matInfo) void
setProjection
(com.bbn.openmap.proj.Projection proj) Set the projection.void
Make the palette visible.Methods inherited from class com.bbn.openmap.layer.OMGraphicHandlerLayer
actionPerformed, canSetList, copy, createLayerWorker, cut, deselect, dispose, doAction, doPrepare, filter, filter, filter, getConsumeEvents, getDefaultSettingsPanel, getFilter, getInfoText, getItemsForMapMenu, getItemsForOMGraphicMenu, getLayerWorker, getList, getMouseEventInterpreter, getMouseModeIDsForEvents, getProjectionChangePolicy, getProperties, getPropertyInfo, getRedrawButton, getRenderPolicy, getSelected, getSettingsButton, getToolTipTextFor, getTransparency, getTransparencyAdjustmentPanel, highlight, isCancelled, isHighlightable, isInterruptable, isSelectable, isWorking, leftClick, mouseOver, paste, prepare, receivesMapEvents, resetFiltering, select, setConsumeEvents, setFilter, setInterruptable, setLayerWorker, setList, setMouseEventInterpreter, setMouseModeIDsForEvents, setProjectionChangePolicy, setProperties, setRenderPolicy, setTransparency, supportsSQL, unhighlight, workerComplete
Methods inherited from class com.bbn.openmap.Layer
addComponentListener, added, addInfoDisplayListener, addLayerStatusListener, addMouseListener, addVetoableChangeListener, childrenAdded, childrenRemoved, clearListeners, connectToBeanContext, createWindowSupport, disconnectFromBeanContext, 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, getIcon, getMaxScale, getMinScale, getPackage, getPalette, getPropertyPrefix, getWindowSupport, hasGUI, 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, setPropertyPrefix, setReadyToPaint, setRemovable, setVisible, setWindowSupport
Methods inherited from class javax.swing.JComponent
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, getUI, 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
Methods inherited from class java.awt.Container
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
Methods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
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 Details
-
dataMapList
-
palette
-
proj
protected com.bbn.openmap.proj.Projection proj -
graphics
protected com.bbn.openmap.omGraphics.OMGraphicList graphics
-
-
Constructor Details
-
ResultatLayer
public ResultatLayer()
-
-
Method Details
-
addDataMap
Add a DataMap to this layer.- Parameters:
data
- DataMap to add.
-
setDataMapList
Set the dataMapList.- Parameters:
list
- DataMapList
-
getDataMapList
Get the DataMapList in this layer.- Returns:
- DataMapList
-
setMatriceInfo
public void setMatriceInfo(org.nuiton.math.matrix.MatrixND matInfo) -
setProjection
public void setProjection(com.bbn.openmap.proj.Projection proj) Set the projection.- Overrides:
setProjection
in classcom.bbn.openmap.Layer
- Parameters:
proj
- Projection
-
getProjection
public com.bbn.openmap.proj.Projection getProjection()Get the projection.- Overrides:
getProjection
in classcom.bbn.openmap.Layer
- Returns:
- Projection proj
-
renderDataForProjection
Implementing the ProjectionPainter interface.- Specified by:
renderDataForProjection
in interfacecom.bbn.openmap.ProjectionPainter
- Overrides:
renderDataForProjection
in classcom.bbn.openmap.layer.OMGraphicHandlerLayer
-
projectionChanged
public void projectionChanged(com.bbn.openmap.event.ProjectionEvent e) Invoked when the projection has changed or this Layer has been added to the MapBean.- Specified by:
projectionChanged
in interfacecom.bbn.openmap.event.ProjectionListener
- Overrides:
projectionChanged
in classcom.bbn.openmap.layer.OMGraphicHandlerLayer
- Parameters:
e
- ProjectionEvent
-
generateGraphics
protected void generateGraphics()Create and project the graphics.Creer l ensemble des carres possible et affiche le cadrillage. -
getGUI
Palette associated to the layer- Overrides:
getGUI
in classcom.bbn.openmap.Layer
- Returns:
- The gui to modify the layer
-
paint
Paints the layer.- Overrides:
paint
in classcom.bbn.openmap.layer.OMGraphicHandlerLayer
- Parameters:
g
- the Graphics context for painting
-
showPalette
public void showPalette()Make the palette visible.- Overrides:
showPalette
in classcom.bbn.openmap.Layer
-
hidePalette
public void hidePalette()Hide the layer's palette.- Overrides:
hidePalette
in classcom.bbn.openmap.Layer
-
getMouseModeServiceList
Return a list of the modes that are interesting to the MapMouseListener. The source MouseEvents will only get sent to the MapMouseListener if the mode is set to one that the listener is interested in. Layers interested in receiving events should register for receiving events in "select" mode.return new String[1] { SelectMouseMode.modeID };
- Specified by:
getMouseModeServiceList
in interfacecom.bbn.openmap.event.MapMouseListener
- See Also:
-
SelectMouseMode.modeID
-
getMapMouseListener
public com.bbn.openmap.event.MapMouseListener getMapMouseListener()Note: A layer interested in receiving amouse events should implement this function . Otherwise, return the default, which is null.- Overrides:
getMapMouseListener
in classcom.bbn.openmap.layer.OMGraphicHandlerLayer
-
mousePressed
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressed
in interfacecom.bbn.openmap.event.MapMouseListener
- Parameters:
e
- MouseEvent- Returns:
- true if the listener was able to process the event.
-
mouseReleased
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleased
in interfacecom.bbn.openmap.event.MapMouseListener
- Parameters:
e
- MouseEvent- Returns:
- true if the listener was able to process the event.
-
mouseClicked
Invoked when the mouse has been clicked on a component. The listener will receive this event if it successfully processedmousePressed()
, or if no other listener processes the event. If the listener successfully processesmouseClicked()
, then it will receive the nextmouseClicked()
notifications that have a click count greater than one.- Specified by:
mouseClicked
in interfacecom.bbn.openmap.event.MapMouseListener
- Parameters:
e
- MouseEvent to handle.- Returns:
- true if the listener was able to process the event.
-
mouseEntered
Invoked when the mouse enters a component.- Specified by:
mouseEntered
in interfacecom.bbn.openmap.event.MapMouseListener
- Parameters:
e
- MouseEvent to handle.
-
mouseExited
Invoked when the mouse exits a component.- Specified by:
mouseExited
in interfacecom.bbn.openmap.event.MapMouseListener
- Parameters:
e
- MouseEvent to handle.
-
mouseDragged
Invoked when a mouse button is pressed on a component and then dragged. The listener will receive these events if it successfully processes mousePressed(), or if no other listener processes the event.- Specified by:
mouseDragged
in interfacecom.bbn.openmap.event.MapMouseListener
- Parameters:
e
- MouseEvent to handle.- Returns:
- true if the listener was able to process the event.
-
mouseMoved
Invoked when the mouse button has been moved on a component (with no buttons no down).- Specified by:
mouseMoved
in interfacecom.bbn.openmap.event.MapMouseListener
- Parameters:
e
- MouseEvent to handle.- Returns:
- true if the listener was able to process the event.
-
mouseMoved
public void mouseMoved()Handle a mouse cursor moving without the button being pressed. This event is intended to tell the listener that there was a mouse movement, but that the event was consumed by another layer. This will allow a mouse listener to clean up actions that might have happened because of another motion event response.- Specified by:
mouseMoved
in interfacecom.bbn.openmap.event.MapMouseListener
-