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
Author:
See Also:
  • Field Details

    • dataMapList

      protected DataMapList dataMapList
    • palette

      protected JPanel 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

      public void addDataMap(DataMap data)
      Add a DataMap to this layer.
      Parameters:
      data - DataMap to add.
    • setDataMapList

      public void setDataMapList(DataMapList list)
      Set the dataMapList.
      Parameters:
      list - DataMapList
    • getDataMapList

      public 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 class com.bbn.openmap.Layer
      Parameters:
      proj - Projection
    • getProjection

      public com.bbn.openmap.proj.Projection getProjection()
      Get the projection.
      Overrides:
      getProjection in class com.bbn.openmap.Layer
      Returns:
      Projection proj
    • renderDataForProjection

      public void renderDataForProjection(com.bbn.openmap.proj.Projection proj, Graphics g)
      Implementing the ProjectionPainter interface.
      Specified by:
      renderDataForProjection in interface com.bbn.openmap.ProjectionPainter
      Overrides:
      renderDataForProjection in class com.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 interface com.bbn.openmap.event.ProjectionListener
      Overrides:
      projectionChanged in class com.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

      public Component getGUI()
      Palette associated to the layer
      Overrides:
      getGUI in class com.bbn.openmap.Layer
      Returns:
      The gui to modify the layer
    • paint

      public void paint(Graphics g)
      Paints the layer.
      Overrides:
      paint in class com.bbn.openmap.layer.OMGraphicHandlerLayer
      Parameters:
      g - the Graphics context for painting
    • showPalette

      public void showPalette()
      Make the palette visible.
      Overrides:
      showPalette in class com.bbn.openmap.Layer
    • hidePalette

      public void hidePalette()
      Hide the layer's palette.
      Overrides:
      hidePalette in class com.bbn.openmap.Layer
    • getMouseModeServiceList

      public String[] 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 interface com.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 class com.bbn.openmap.layer.OMGraphicHandlerLayer
    • mousePressed

      public boolean mousePressed(MouseEvent e)
      Invoked when a mouse button has been pressed on a component.
      Specified by:
      mousePressed in interface com.bbn.openmap.event.MapMouseListener
      Parameters:
      e - MouseEvent
      Returns:
      true if the listener was able to process the event.
    • mouseReleased

      public boolean mouseReleased(MouseEvent e)
      Invoked when a mouse button has been released on a component.
      Specified by:
      mouseReleased in interface com.bbn.openmap.event.MapMouseListener
      Parameters:
      e - MouseEvent
      Returns:
      true if the listener was able to process the event.
    • mouseClicked

      public boolean mouseClicked(MouseEvent e)
      Invoked when the mouse has been clicked on a component. The listener will receive this event if it successfully processed 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.
      Specified by:
      mouseClicked in interface com.bbn.openmap.event.MapMouseListener
      Parameters:
      e - MouseEvent to handle.
      Returns:
      true if the listener was able to process the event.
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Invoked when the mouse enters a component.
      Specified by:
      mouseEntered in interface com.bbn.openmap.event.MapMouseListener
      Parameters:
      e - MouseEvent to handle.
    • mouseExited

      public void mouseExited(MouseEvent e)
      Invoked when the mouse exits a component.
      Specified by:
      mouseExited in interface com.bbn.openmap.event.MapMouseListener
      Parameters:
      e - MouseEvent to handle.
    • mouseDragged

      public boolean mouseDragged(MouseEvent e)
      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 interface com.bbn.openmap.event.MapMouseListener
      Parameters:
      e - MouseEvent to handle.
      Returns:
      true if the listener was able to process the event.
    • mouseMoved

      public boolean mouseMoved(MouseEvent e)
      Invoked when the mouse button has been moved on a component (with no buttons no down).
      Specified by:
      mouseMoved in interface com.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 interface com.bbn.openmap.event.MapMouseListener