Class PointObj

java.lang.Object
  |
  +--java.awt.Component
        |
        +--DrawObj
              |
              +--PointObj
Direct Known Subclasses:
LegendObj

public class PointObj
extends DrawObj
implements java.awt.event.MouseListener

This class handle a point commant. When active, it wait a mouse click and commit the operation.

Author:
Guy Parent
See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  Map m_map
          Map object.
protected  int x
          X coordinate
protected  int y
          Y coordinate
 
Fields inherited from class DrawObj
color, g
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
PointObj(Map parent)
           
 
Method Summary
 void destroyEvent()
          Destroy the mouse listener.
 void draw()
          Not used
(package private)  void drawPoint()
          After the mouse release, this method draw a cross at the mouse click location.
 java.lang.String getSubmitValue()
          Create the submit string.
 void mouseClicked(java.awt.event.MouseEvent evt)
          Not used
 void mouseEntered(java.awt.event.MouseEvent evt)
          Not used
 void mouseExited(java.awt.event.MouseEvent evt)
          Not used
 void mousePressed(java.awt.event.MouseEvent evt)
          Not used
 void mouseReleased(java.awt.event.MouseEvent evt)
          Commit the operation.
 void resize(java.awt.Point p)
          Not used
 
Methods inherited from class DrawObj
getColor, paint, setColor
 
Methods inherited from class java.awt.Component
, action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, constructComponentName, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, initIDs, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, postsOldMouseEvents, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, readObject, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

x

protected int x
X coordinate

y

protected int y
Y coordinate

m_map

Map m_map
Map object.
Constructor Detail

PointObj

public PointObj(Map parent)
Method Detail

getSubmitValue

public java.lang.String getSubmitValue()
Create the submit string. The point data likes ValueX,ValueY
Overrides:
getSubmitValue in class DrawObj
Tags copied from class: DrawObj
Returns:
String containing the submit value.
See Also:
Rosa applet parameters

destroyEvent

public void destroyEvent()
Destroy the mouse listener.
Overrides:
destroyEvent in class DrawObj

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Commit the operation.
Specified by:
mouseReleased in interface java.awt.event.MouseListener

drawPoint

void drawPoint()
After the mouse release, this method draw a cross at the mouse click location.

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
Not used
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Not used
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Not used
Specified by:
mouseClicked in interface java.awt.event.MouseListener

draw

public void draw()
Not used
Overrides:
draw in class DrawObj

resize

public void resize(java.awt.Point p)
Not used
Overrides:
resize in class DrawObj
Tags copied from class: DrawObj
Parameters:
p - new coordinate.

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Not used
Specified by:
mousePressed in interface java.awt.event.MouseListener