|
||||||||||
| 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
edu.neu.ccs.gui.DisplayPanel
edu.neu.ccs.gui.FontSampler
Class FontSampler creates a GUI to sample
the fonts installed on the system. The characters shown
are those with codes from 32 to 126.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected BooleanView |
boldBox
The bold check box. |
protected int |
deltah
The height delta. |
protected int |
deltaw
The width delta. |
protected String[] |
familyList
The font family list as an array. |
protected Dropdown |
fontDropdown
The font family dropdown list. |
protected HTable |
fontPanel
The font family panel. |
protected TextFieldView |
fontSizeTFV
The font size text field view. |
protected Object[] |
fontStuff
The font family stuff. |
protected int |
gap
The table gap. |
protected GraphicsEnvironment |
ge
The graphics environment. |
protected int |
height
The BufferedPanel height. |
protected BooleanView |
italicBox
The italic check box. |
protected VTable |
mainPanel
The main table. |
protected Object[] |
mainStuff
The main stuff. |
protected int |
minimum
The minimum font size. |
protected Object[] |
paramsStuff
The font params stuff. |
protected HTable |
paramsTable
The font params table |
protected SimpleAction |
showFont
The show font action. |
protected int |
width
The BufferedPanel width. |
protected BufferedPanel |
window
The BufferedPanel |
| Fields inherited from class edu.neu.ccs.gui.DisplayPanel |
background, codec, CODEC |
| Fields inherited from class javax.swing.JPanel |
|
| 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.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface edu.neu.ccs.gui.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface edu.neu.ccs.util.JPTConstants |
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
FontSampler()
The constructor. |
|
| Method Summary | |
Font |
getCurrentFont()
Returns the current font based on the user selections in the GUI of this panel. |
static void |
main(String[] args)
The main program that launches a font sampler in its own GUI frame. |
protected void |
showFont()
This methods displays the characters with codes from 32 to 126 in the graphics window using the current font. |
| 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 |
protected int minimum
protected int gap
protected int deltaw
protected int deltah
protected int width
protected int height
protected BufferedPanel window
protected GraphicsEnvironment ge
protected String[] familyList
protected SimpleAction showFont
protected Dropdown fontDropdown
protected TextFieldView fontSizeTFV
protected BooleanView boldBox
protected BooleanView italicBox
protected Object[] fontStuff
protected HTable fontPanel
protected Object[] paramsStuff
protected HTable paramsTable
protected Object[] mainStuff
protected VTable mainPanel
| Constructor Detail |
public FontSampler()
| Method Detail |
protected void showFont()
This methods displays the characters with codes from 32 to 126 in the graphics window using the current font.
public Font getCurrentFont()
Returns the current font based on the user selections in the GUI of this panel.
public static void main(String[] args)
The main program that launches a font sampler in its own GUI frame.
Use the call:
FontSampler.main(null)
args - ignored and may be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||