All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.util.FloatingTextField

java.lang.Object
   |
   +----CH.ifa.draw.util.FloatingTextField

public class FloatingTextField
extends Object
A text field overlay that is used to edit a TextFigure. A FloatingTextField requires a two step initialization: In a first step the overlay is created and in a second step it can be positioned.

See Also:
TextFigure

Constructor Index

 o FloatingTextField()

Method Index

 o addActionListener(ActionListener)
Adds an action listener
 o createOverlay(Container)
Creates the overlay for the given Component.
 o createOverlay(Container, Font)
Creates the overlay for the given Container using a specific font.
 o endOverlay()
Removes the overlay.
 o getPreferredSize(int)
Gets the preferred size of the overlay.
 o getText()
Gets the text contents of the overlay.
 o removeActionListener(ActionListener)
Remove an action listener
 o setBounds(Rectangle, String)
Positions the overlay.

Constructors

 o FloatingTextField
 public FloatingTextField()

Methods

 o createOverlay
 public void createOverlay(Container container)
Creates the overlay for the given Component.

 o createOverlay
 public void createOverlay(Container container,
                           Font font)
Creates the overlay for the given Container using a specific font.

 o addActionListener
 public void addActionListener(ActionListener listener)
Adds an action listener

 o removeActionListener
 public void removeActionListener(ActionListener listener)
Remove an action listener

 o setBounds
 public void setBounds(Rectangle r,
                       String text)
Positions the overlay.

 o getText
 public String getText()
Gets the text contents of the overlay.

 o getPreferredSize
 public Dimension getPreferredSize(int cols)
Gets the preferred size of the overlay.

 o endOverlay
 public void endOverlay()
Removes the overlay.


All Packages  Class Hierarchy  This Package  Previous  Next  Index