|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wirefusion.gui.textimage.TextImage
public final class TextImage
TextImage objects can be used for creating PNG images showing text. It is for example used in the advanced mode in the Button widget, for specifying the button label.
| Field Summary | |
|---|---|
static int |
BUTTON_TEXT_MODE
TextImage mode suitable for button labels |
static int |
CHECKBOX_TEXT_MODE
TextImage mode suitable for checkbox labels |
static int |
STANDARD_MODE
Default TextImage mode |
static int |
TOOLTIP_MODE
TextImage mode suitable for ToolTip like texts |
| Constructor Summary | |
|---|---|
TextImage(int mode)
Constructs a new TextImage object. |
|
| Method Summary | |
|---|---|
TextImage |
getClone()
Returns a clone of the object. |
java.lang.String |
getPlainText()
Returns the current text in the TextImage. |
java.io.File |
openEditor(java.awt.Dialog owner)
Opens the TextImage editor. |
java.io.File |
openEditor(java.awt.Dialog owner,
java.awt.Image backgroundImage)
Opens the TextImage editor. |
void |
setImageDimension(java.awt.Dimension dimension)
Sets the default text image dimension that will be used in the TextImage editor. |
void |
setImageName(java.lang.String string)
Sets the name of the image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Field Detail |
|---|
public static final int STANDARD_MODE
public static final int TOOLTIP_MODE
public static final int BUTTON_TEXT_MODE
public static final int CHECKBOX_TEXT_MODE
| Constructor Detail |
|---|
public TextImage(int mode)
mode - the TextImage mode| Method Detail |
|---|
public TextImage getClone()
public java.io.File openEditor(java.awt.Dialog owner)
owner - the owner dialog
public java.io.File openEditor(java.awt.Dialog owner,
java.awt.Image backgroundImage)
owner - backgroundImage -
public java.lang.String getPlainText()
public void setImageName(java.lang.String string)
string - an image namepublic void setImageDimension(java.awt.Dimension dimension)
dimension - the text input pane dimension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||