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 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

      public LinkListener(org.gvsig.fmap.mapcontrol.MapControl mc, ManagerRegistry registry)
      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:
      point in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener
      Parameters:
      event - PointEvent
      Throws:
      org.gvsig.fmap.mapcontrol.tools.BehaviorException
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#point(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)
    • getCursor

      public Cursor getCursor()
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()
    • cancelDrawing

      public boolean cancelDrawing()
      Specified by:
      cancelDrawing in interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
      See Also:
      • invalid reference
        com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
    • pointDoubleClick

      public void pointDoubleClick(org.gvsig.fmap.mapcontrol.tools.Events.PointEvent event) throws org.gvsig.fmap.mapcontrol.tools.BehaviorException
      Specified by:
      pointDoubleClick in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener
      Throws:
      org.gvsig.fmap.mapcontrol.tools.BehaviorException
    • getImageCursor

      public Image getImageCursor()
      Specified by:
      getImageCursor in interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener