public class TLcdMapGridRefLocation extends Component implements MouseListener, MouseMotionListener
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) .Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
CENTER |
static int |
LEFT |
static int |
RIGHT |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TLcdMapGridRefLocation() |
Modifier and Type | Method and Description |
---|---|
int |
getAlignment()
The property of alignment determines whether to center, left or right align
the location information.
|
double |
getEasting() |
ILcdGridReference |
getGridReference() |
ILcdGXYView |
getGXYView()
Returns the GXYview property.
|
Dimension |
getMinimumSize() |
double |
getNorthing() |
Dimension |
getPreferredSize() |
void |
mouseClicked(MouseEvent me)
MouseEvent me is ignored. |
void |
mouseDragged(MouseEvent me)
MouseEvent me is ignored. |
void |
mouseEntered(MouseEvent me)
MouseEvent me is ignored. |
void |
mouseExited(MouseEvent me)
MouseEvent me is ignored. |
void |
mouseMoved(MouseEvent me)
The
MouseEvent me causes the properties of importance to the
current mode to be updated. |
void |
mousePressed(MouseEvent me)
The
MouseEvent me causes the properties of importance to the
current mode to be updated. |
void |
mouseReleased(MouseEvent me)
MouseEvent me is ignored. |
void |
paint(Graphics aGraphics) |
protected void |
processMouseEvent(MouseEvent me)
The
MouseEvent me causes the properties of importance to the
current mode to be updated. |
void |
setAlignment(int newAlignment)
The property of alignment determines whether to center, left or right align
the location information.
|
void |
setGridReference(ILcdGridReference aGridReference) |
void |
setGXYView(ILcdGXYView aGXYView)
Sets the GXYView property to newGXYView.
|
protected void |
updateWithLocation(int aX,
int aY) |
String |
valueAsString() |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public Dimension getMinimumSize()
getMinimumSize
in class Component
public Dimension getPreferredSize()
getPreferredSize
in class Component
public String valueAsString()
public double getEasting()
ILcdGXYView
.public double getNorthing()
ILcdGXYView
.public void setGridReference(ILcdGridReference aGridReference)
public ILcdGridReference getGridReference()
public void setAlignment(int newAlignment)
public int getAlignment()
public void setGXYView(ILcdGXYView aGXYView)
public ILcdGXYView getGXYView()
protected void updateWithLocation(int aX, int aY)
protected void processMouseEvent(MouseEvent me)
MouseEvent
me causes the properties of importance to the
current mode to be updated.processMouseEvent
in class Component
public void mouseMoved(MouseEvent me)
MouseEvent
me causes the properties of importance to the
current mode to be updated.mouseMoved
in interface MouseMotionListener
public void mouseDragged(MouseEvent me)
MouseEvent
me is ignored.mouseDragged
in interface MouseMotionListener
public void mousePressed(MouseEvent me)
MouseEvent
me causes the properties of importance to the
current mode to be updated.mousePressed
in interface MouseListener
public void mouseClicked(MouseEvent me)
MouseEvent
me is ignored.mouseClicked
in interface MouseListener
public void mouseReleased(MouseEvent me)
MouseEvent
me is ignored.mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent me)
MouseEvent
me is ignored.mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent me)
MouseEvent
me is ignored.mouseExited
in interface MouseListener