CH.ifa.draw.samples.javadraw
Class URLTool

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractTool
      extended by CH.ifa.draw.samples.javadraw.URLTool
All Implemented Interfaces:
Tool

public class URLTool
extends AbstractTool

A tool to attach URLs to figures. The URLs are stored in the figure's "URL" attribute. The URL text is entered with a FloatingTextField.

See Also:
FloatingTextField

Field Summary
 
Fields inherited from class CH.ifa.draw.standard.AbstractTool
fAnchorX, fAnchorY, fView
 
Constructor Summary
URLTool(DrawingView view)
           
 
Method Summary
 void deactivate(DrawingView view)
           
 void endAction(java.awt.event.ActionEvent e)
           
 void mouseDown(java.awt.event.MouseEvent e, int x, int y)
          Handles mouse down events in the drawing view.
 void mouseUp(java.awt.event.MouseEvent e, int x, int y)
          Handles mouse up in the drawing view.
 
Methods inherited from class CH.ifa.draw.standard.AbstractTool
activate, deactivate, drawing, editor, keyDown, mouseDrag, mouseMove, view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLTool

public URLTool(DrawingView view)
Method Detail

mouseDown

public void mouseDown(java.awt.event.MouseEvent e,
                      int x,
                      int y)
Description copied from class: AbstractTool
Handles mouse down events in the drawing view.

Specified by:
mouseDown in interface Tool
Overrides:
mouseDown in class AbstractTool

mouseUp

public void mouseUp(java.awt.event.MouseEvent e,
                    int x,
                    int y)
Description copied from class: AbstractTool
Handles mouse up in the drawing view.

Specified by:
mouseUp in interface Tool
Overrides:
mouseUp in class AbstractTool

deactivate

public void deactivate(DrawingView view)

endAction

public void endAction(java.awt.event.ActionEvent e)