|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
adams.gui.goe.AbstractPropertyEditorSupport
adams.gui.goe.PdfFontEditor
public class PdfFontEditor
A PropertyEditor for iText Font objects that lets the user select a font from the font dialog.
| Field Summary | |
|---|---|
protected JButton |
m_ButtonClose
the close button. |
protected JButton |
m_ButtonOK
the OK button. |
protected PdfFontChooserPanel |
m_FontChooserPanel
The Font chooser used for selecting colors. |
| Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport |
|---|
APPROVE_OPTION, CANCEL_OPTION, m_ChosenOption, m_CustomEditor, m_WindowAdapter |
| Constructor Summary | |
|---|---|
PdfFontEditor()
|
|
| Method Summary | |
|---|---|
protected JComponent |
createCustomEditor()
Gets the custom editor component. |
Object |
fromCustomStringRepresentation(String str)
Returns an object created from the custom string representation. |
String |
getJavaInitializationString()
Returns a representation of the current property value as java source. |
protected void |
initForDisplay()
Initializes the display of the value. |
void |
paintValue(Graphics gfx,
Rectangle box)
Paints a representation of the current Object. |
String |
toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object. |
static String |
toString(AbstractOption option,
Object object)
Returns the color as string. |
static Object |
valueOf(AbstractOption option,
String str)
Returns a color generated from the string. |
| Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport |
|---|
addWindowAdapter, cleanUp, closeDialog, createPopup, createWindowAdapter, getChosenOption, getCustomEditor, initialize, isPaintable, resetChosenOption, setValue, supportsCustomEditor |
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PdfFontChooserPanel m_FontChooserPanel
protected JButton m_ButtonOK
protected JButton m_ButtonClose
| Constructor Detail |
|---|
public PdfFontEditor()
| Method Detail |
|---|
public static String toString(AbstractOption option,
Object object)
option - the current optionobject - the color object to convert
public static Object valueOf(AbstractOption option,
String str)
option - the current optionstr - the string to convert to a color
public String toCustomStringRepresentation(Object obj)
toCustomStringRepresentation in interface CustomStringRepresentationHandlerobj - the object to turn into a string
public Object fromCustomStringRepresentation(String str)
fromCustomStringRepresentation in interface CustomStringRepresentationHandlerstr - the string to turn into an object
public String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupportprotected JComponent createCustomEditor()
createCustomEditor in class AbstractPropertyEditorSupportprotected void initForDisplay()
initForDisplay in class AbstractPropertyEditorSupport
public void paintValue(Graphics gfx,
Rectangle box)
paintValue in interface PropertyEditorpaintValue in class PropertyEditorSupportgfx - the graphics context to usebox - the area we are allowed to paint into
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||