com.partnersoft.v3x.apps.MapBrowser
Class MapPointSpecifier

java.lang.Object
  extended by com.partnersoft.v3x.gadgets.SpecifierGadget
      extended by com.partnersoft.v3x.apps.MapBrowser.MapGraphicSpecifier
          extended by com.partnersoft.v3x.apps.MapBrowser.MapPointSpecifier
All Implemented Interfaces:
MapMotionListener, MapMouseListener, Specifier, java.util.EventListener

public class MapPointSpecifier
extends MapGraphicSpecifier

Graphic specifier for mapPoints. Picks the one whose center is closest to the selected point.


Constructor Summary
MapPointSpecifier(MapPointSource source)
           
 
Method Summary
 java.lang.Object findSelectedObjectAt(Coord3D coords, int pixelX, int pixelY)
          Subclasses must override this to provide the function deriving the selected object from the given coordinates and pixels.
 void setSpecified(java.lang.Object newSpec)
          Specifies an object.
 
Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.MapGraphicSpecifier
disable, enable, getGlobalToggle, getIndicationSpecifier, getListening, getMapViewPanel, getMXToggle, indicateObjectAt, mapClicked, mapDragged, mapEntered, mapExited, mapMoved, mapPressed, mapReleased, setGlobalToggle, setListening, setMapViewPanel, setMXToggle
 
Methods inherited from class com.partnersoft.v3x.gadgets.SpecifierGadget
addSpecificationListener, getSpecified, getSpecifiedClass, removeSpecificationListener, setSpecifiedClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPointSpecifier

public MapPointSpecifier(MapPointSource source)
Method Detail

findSelectedObjectAt

public java.lang.Object findSelectedObjectAt(Coord3D coords,
                                             int pixelX,
                                             int pixelY)
Description copied from class: MapGraphicSpecifier
Subclasses must override this to provide the function deriving the selected object from the given coordinates and pixels.

Specified by:
findSelectedObjectAt in class MapGraphicSpecifier

setSpecified

public void setSpecified(java.lang.Object newSpec)
Description copied from class: SpecifierGadget
Specifies an object.

Specified by:
setSpecified in interface Specifier
Overrides:
setSpecified in class SpecifierGadget