public class LinkListener extends java.lang.Object implements PointListener
| Modifier and Type | Field and Description |
|---|---|
ExtensionPoint |
formatManagers |
static int |
TYPELINKIMAGE |
static int |
TYPELINKTEXT |
| Constructor and Description |
|---|
LinkListener(MapControl mc,
ManagerRegistry registry)
Creates a new LinkListener
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelDrawing()
Determines if the drawing process that this tool executes on the
MapControl
instance could be canceled or not. |
java.awt.Cursor |
getCursor() |
java.awt.Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
void |
point(PointEvent event)
Creates one LinkPanel for URI provided.
|
void |
pointDoubleClick(PointEvent event)
Called when a double click is pressed on the associated
MapControl. |
public static final int TYPELINKIMAGE
public static final int TYPELINKTEXT
public ExtensionPoint formatManagers
public LinkListener(MapControl mc, ManagerRegistry registry)
mc - mapControlpublic void point(PointEvent event) throws BehaviorException
point in interface PointListenerevent - PointEventBehaviorExceptioncom.iver.cit.gvsig.fmap.tools.Listeners.PointListener#point(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)public java.awt.Cursor getCursor()
com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()public boolean cancelDrawing()
ToolListenerDetermines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
cancelDrawing in interface ToolListenertrue if is cancellable; otherwise returns falsecom.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()public void pointDoubleClick(PointEvent event) throws BehaviorException
PointListenerCalled when a double click is pressed on the associated MapControl.
pointDoubleClick in interface PointListenerevent - mouse event and the coordinates of the point selected on the associated MapControlBehaviorException - will be thrown when fails the process of this toolpublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListener