Class TLcdMapGridRefLocation

java.lang.Object
java.awt.Component
com.luciad.view.map.TLcdMapGridRefLocation
All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener

public class TLcdMapGridRefLocation extends Component implements MouseListener, MouseMotionListener
This is a util class to get the geographical location expressed in grid coordinates of some ILcdGridReference of a (x,y) position on a map ILcdGXYView. The ILcdGXYView must have an ILcdGridReference as XYWorldReference property. This class can be used as MouseMotionListener (mouseMoved), MouseListener(mousePressed), or at will ( updateWithLocation(x,y) ). The location is expressed in Easting (X) and Northing (Y) .
See Also:
  • Field Details Link icon

  • Constructor Details Link icon

    • TLcdMapGridRefLocation Link icon

      public TLcdMapGridRefLocation()
  • Method Details Link icon

    • getMinimumSize Link icon

      public Dimension getMinimumSize()
      Overrides:
      getMinimumSize in class Component
    • getPreferredSize Link icon

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class Component
    • valueAsString Link icon

      public String valueAsString()
      Returns:
      the information pertaining the current mode and GXYView as a String.
    • getEasting Link icon

      public double getEasting()
      Returns:
      the easting of the (x,y) position in the ILcdGXYView.
    • getNorthing Link icon

      public double getNorthing()
      Returns:
      the northing of the (x,y) position in the ILcdGXYView.
    • setGridReference Link icon

      public void setGridReference(ILcdGridReference aGridReference)
    • getGridReference Link icon

      public ILcdGridReference getGridReference()
    • setAlignment Link icon

      public void setAlignment(int newAlignment)
      The property of alignment determines whether to center, left or right align the location information. This can be RIGHT, LEFT or CENTER. Sets the property of alignment to newAlignment.
    • getAlignment Link icon

      public int getAlignment()
      The property of alignment determines whether to center, left or right align the location information. Returns the property of alignment.
      Returns:
      RIGHT, LEFT or CENTER.
    • setGXYView Link icon

      public void setGXYView(ILcdGXYView aGXYView)
      Sets the GXYView property to newGXYView.
    • getGXYView Link icon

      public ILcdGXYView getGXYView()
      Returns the GXYview property.
    • updateWithLocation Link icon

      protected void updateWithLocation(int aX, int aY)
    • paint Link icon

      public void paint(Graphics aGraphics)
      Overrides:
      paint in class Component
    • processMouseEvent Link icon

      protected void processMouseEvent(MouseEvent me)
      The MouseEvent me causes the properties of importance to the current mode to be updated.
      Overrides:
      processMouseEvent in class Component
    • mouseMoved Link icon

      public void mouseMoved(MouseEvent me)
      The MouseEvent me causes the properties of importance to the current mode to be updated.
      Specified by:
      mouseMoved in interface MouseMotionListener
    • mouseDragged Link icon

      public void mouseDragged(MouseEvent me)
      MouseEvent me is ignored.
      Specified by:
      mouseDragged in interface MouseMotionListener
    • mousePressed Link icon

      public void mousePressed(MouseEvent me)
      The MouseEvent me causes the properties of importance to the current mode to be updated.
      Specified by:
      mousePressed in interface MouseListener
    • mouseClicked Link icon

      public void mouseClicked(MouseEvent me)
      MouseEvent me is ignored.
      Specified by:
      mouseClicked in interface MouseListener
    • mouseReleased Link icon

      public void mouseReleased(MouseEvent me)
      MouseEvent me is ignored.
      Specified by:
      mouseReleased in interface MouseListener
    • mouseEntered Link icon

      public void mouseEntered(MouseEvent me)
      MouseEvent me is ignored.
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited Link icon

      public void mouseExited(MouseEvent me)
      MouseEvent me is ignored.
      Specified by:
      mouseExited in interface MouseListener