|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.contrib.FloatingTextArea
public class FloatingTextArea
A FloatingTextArea overlays an editor on top of an area in a drawing
Constructor Summary | |
---|---|
FloatingTextArea()
Constructor for the FloatingTextArea object |
Method Summary | |
---|---|
void |
createOverlay(java.awt.Container container)
Creates the overlay within the given container. |
void |
createOverlay(java.awt.Container container,
java.awt.Font font)
Creates the overlay for the given Container using a specific font. |
void |
endOverlay()
Removes the overlay. |
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 |
setBounds(java.awt.Rectangle r,
java.lang.String text)
Positions and sizes the overlay. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatingTextArea()
Method Detail |
---|
public void createOverlay(java.awt.Container container)
container
- the containerpublic void createOverlay(java.awt.Container container, java.awt.Font font)
container
- the containerfont
- the fontpublic void setBounds(java.awt.Rectangle r, java.lang.String text)
r
- the bounding rectangle for the overlaytext
- the text to editpublic java.lang.String getText()
public java.awt.Dimension getPreferredSize(int cols)
cols
- Description of the Parameter
public void endOverlay()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |