public class LinkListener extends 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. |
Cursor |
getCursor() |
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 PointListener
event
- PointEventBehaviorException
com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#point(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)
public Cursor getCursor()
com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()
public boolean cancelDrawing()
ToolListener
Determines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
cancelDrawing
in interface ToolListener
true
if is cancellable; otherwise returns false
com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
public void pointDoubleClick(PointEvent event) throws BehaviorException
PointListener
Called when a double click is pressed on the associated MapControl
.
pointDoubleClick
in interface PointListener
event
- mouse event and the coordinates of the point selected on the associated MapControl
BehaviorException
- will be thrown when fails the process of this toolpublic Image getImageCursor()
ToolListener
Gets the Cursor
associated to this tool.
getImageCursor
in interface ToolListener