|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.chooser.PdfFontChooserPanel
public class PdfFontChooserPanel
A font selection panel.
Original code taken from here.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
DEFAULT_FONT
the default font. |
static Integer |
DEFAULT_SIZE
The index of the default size. |
static String[] |
FONT_FACES
The list of font faces. |
static String[] |
FONT_FAMILIES
The list of font families. |
static Integer[] |
FONT_SIZES
The list of font sizes. |
protected PdfFont |
m_Current
The font the user has chosen. |
protected boolean |
m_IgnoreUpdates
whether to ignore updates in the GUI temporarily. |
protected JList |
m_ListFontFace
The face chooser. |
protected JList |
m_ListFontName
The font name chooser. |
protected JList |
m_ListFontSize
The font size chooser. |
protected JTextArea |
m_TextSample
The display area. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PdfFontChooserPanel()
|
|
| Method Summary | |
|---|---|
protected PdfFont |
createFont()
Determines the font based on the current settings and returns it. |
PdfFont |
getCurrent()
Retrieve the selected font, or null. |
protected void |
initGUI()
Initializes the widgets. |
static void |
main(String[] args)
Simple main program to start it running. |
protected void |
previewFont()
Called from the action handlers to get the font info, build a font, and set it. |
void |
setCurrent(PdfFont value)
Sets the selected font. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, initialize, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Integer[] FONT_SIZES
public static final String[] FONT_FAMILIES
public static final String[] FONT_FACES
public static final String DEFAULT_FONT
public static final Integer DEFAULT_SIZE
protected PdfFont m_Current
protected JList m_ListFontName
protected JList m_ListFontSize
protected JList m_ListFontFace
protected JTextArea m_TextSample
protected boolean m_IgnoreUpdates
| Constructor Detail |
|---|
public PdfFontChooserPanel()
| Method Detail |
|---|
protected void initGUI()
initGUI in class BasePanelprotected PdfFont createFont()
protected void previewFont()
public void setCurrent(PdfFont value)
value - the font, can be nullpublic PdfFont getCurrent()
public static void main(String[] args)
args - ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||