All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.figures.ConnectedTextTool

java.lang.Object
   |
   +----CH.ifa.draw.standard.AbstractTool
           |
           +----CH.ifa.draw.standard.CreationTool
                   |
                   +----CH.ifa.draw.figures.TextTool
                           |
                           +----CH.ifa.draw.figures.ConnectedTextTool

public class ConnectedTextTool
extends TextTool
Tool to create new or edit existing text figures. A new text figure is connected with the clicked figure.

See Also:
TextHolder

Constructor Index

 o ConnectedTextTool(DrawingView, Figure)

Method Index

 o activate()
If the pressed figure is a TextHolder it can be edited otherwise a new text figure is created.
 o mouseDown(MouseEvent, int, int)
If the pressed figure is a TextHolder it can be edited otherwise a new text figure is created.

Constructors

 o ConnectedTextTool
 public ConnectedTextTool(DrawingView view,
                          Figure prototype)

Methods

 o mouseDown
 public void mouseDown(MouseEvent e,
                       int x,
                       int y)
If the pressed figure is a TextHolder it can be edited otherwise a new text figure is created.

Overrides:
mouseDown in class TextTool
 o activate
 public void activate()
If the pressed figure is a TextHolder it can be edited otherwise a new text figure is created.

Overrides:
activate in class TextTool

All Packages  Class Hierarchy  This Package  Previous  Next  Index