|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.draw.FloatingTextField
public class FloatingTextField
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.
TextFigure
Constructor Summary | |
---|---|
FloatingTextField()
|
Method Summary | |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Adds an action listener |
void |
createOverlay(DrawingView view)
Creates the overlay for the given Component. |
void |
createOverlay(DrawingView view,
TextHolderFigure figure)
Creates the overlay for the given Container using a specific font. |
void |
endOverlay()
Removes the overlay. |
java.awt.Insets |
getInsets()
|
java.awt.Dimension |
getPreferredSize(int cols)
Gets the preferred size of the overlay. |
java.lang.String |
getText()
Gets the text contents of the overlay. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Remove an action listener |
void |
requestFocus()
|
void |
setBounds(java.awt.Rectangle r,
java.lang.String text)
Positions the overlay. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatingTextField()
Method Detail |
---|
public void createOverlay(DrawingView view)
public void requestFocus()
public void createOverlay(DrawingView view, TextHolderFigure figure)
public java.awt.Insets getInsets()
public void addActionListener(java.awt.event.ActionListener listener)
public void removeActionListener(java.awt.event.ActionListener listener)
public void setBounds(java.awt.Rectangle r, java.lang.String text)
public java.lang.String getText()
public java.awt.Dimension getPreferredSize(int cols)
public void endOverlay()
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |