Class LinkListener
java.lang.Object
org.gvsig.hyperlink.app.extension.LinkListener
- All Implemented Interfaces:
org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener,org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
public class LinkListener
extends Object
implements org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener
Listener that implements PointListener to show the information of the
HyperLink of the layer,
if the actual layer allows it. When the user selects the tool and make one
clic with
the mouse throws an event to create Panels with the information of the
associated HyperLink
to the layer. Creates one panel for URI provided, to load the information.
- Author:
- Vicente Caballero Navarro, Cesar Martinez Izqueirdo
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.gvsig.tools.extensionpoint.ExtensionPointstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionLinkListener(org.gvsig.fmap.mapcontrol.MapControl mc, ManagerRegistry registry) Creates a new LinkListener -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidpoint(org.gvsig.fmap.mapcontrol.tools.Events.PointEvent event) Creates one LinkPanel for URI provided.voidpointDoubleClick(org.gvsig.fmap.mapcontrol.tools.Events.PointEvent event)
-
Field Details
-
TYPELINKIMAGE
public static final int TYPELINKIMAGE- See Also:
-
TYPELINKTEXT
public static final int TYPELINKTEXT- See Also:
-
formatManagers
public org.gvsig.tools.extensionpoint.ExtensionPoint formatManagers
-
-
Constructor Details
-
LinkListener
Creates a new LinkListener- Parameters:
mc- mapControl
-
-
Method Details
-
point
public void point(org.gvsig.fmap.mapcontrol.tools.Events.PointEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException Creates one LinkPanel for URI provided. Gets the active layers and invokes getLink with the catched point and the allowed tolerance if these layers allows HyperLinks. getLink provides an array of URIs, this method is invoked for all active layers.- Specified by:
pointin interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.PointListener- Parameters:
event- PointEvent- Throws:
org.gvsig.fmap.mapcontrol.tools.BehaviorException- See Also:
-
getCursor
- See Also:
-
cancelDrawing
public boolean cancelDrawing()- Specified by:
cancelDrawingin interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener- See Also:
-
pointDoubleClick
public void pointDoubleClick(org.gvsig.fmap.mapcontrol.tools.Events.PointEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException - Specified by:
pointDoubleClickin interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.PointListener- Throws:
org.gvsig.fmap.mapcontrol.tools.BehaviorException
-
getImageCursor
- Specified by:
getImageCursorin interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
-