|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--com.zfqjava.swing.JFontChooser
JFontChooser provides a pane of controls designed to allow
a user to manipulate and select a font.
Client Property:
| Name | Value | Default Value |
|---|---|---|
| JFontChooser.forContentType |
|
text/plain |
| JFontChooser.defaultEffectEnabled |
|
Boolean.FALSE |
| Inner Class Summary | |
protected class |
JFontChooser.AccessibleJFontChooser
This class implements accessibility support for the JFontChooser class. |
| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
protected javax.accessibility.AccessibleContext |
accessibleContext
|
static int |
CANCEL_OPTION
Return value if cancel is chosen. |
static int |
OK_OPTION
Return value if ok is chosen. |
| Fields inherited from class javax.swing.JComponent |
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 | |
JFontChooser()
Constructs a JFontChooser. |
|
| Method Summary | |
protected javax.swing.JDialog |
createDialog(java.awt.Component parent,
java.lang.String title,
JFontChooser fontChooser,
java.awt.event.ActionListener okListener,
java.awt.event.ActionListener cancelListener)
Creates the dialog for the JFontChooser. |
javax.accessibility.AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JFontChooser. |
java.lang.Object[] |
getEffectSet()
Returns the font effects which can be selected. |
java.awt.Color |
getFontColor()
Returns the current font color. |
java.util.Locale |
getFontLocale()
Returns the current font locale. |
java.lang.Object[] |
getSelectedEffects()
Returns the selected font effects. |
java.awt.Font |
getSelectedFont()
Returns the selected font. |
FontChooserUI |
getUI()
Gets the UI object which implements the L&F for this component. |
java.lang.String |
getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component. |
protected java.lang.String |
paramString()
Returns a string representation of this JFontChooser. |
void |
setEffectSet(java.lang.Object[] effects)
Sets the font effects which can be selected. |
void |
setFontColor(java.awt.Color fontColor)
Sets the current font color. |
void |
setFontLocale(java.util.Locale fontLocale)
Sets the current font locale. |
void |
setSelectedEffects(java.lang.Object[] selectedEffects)
Sets the selected font effects. |
void |
setSelectedFont(java.awt.Font font)
Sets the font to be selected. |
int |
showDialog(java.awt.Component parent)
Pops up a dialog contains the JFontChooser and parented
to parent with the dialog having a default title. |
int |
showDialog(java.awt.Component parent,
java.lang.String title)
Pops up a dialog contains the JFontChooser and parented
to parent with the dialog having a title title. |
void |
updateUI()
Notification from the UIFactory that the L&F
has changed. |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OK_OPTION
public static final int CANCEL_OPTION
protected javax.accessibility.AccessibleContext accessibleContext
| Constructor Detail |
public JFontChooser()
JFontChooser.JFontChooser()| Method Detail |
public void updateUI()
UIFactory that the L&F
has changed.updateUI in class javax.swing.JComponentJComponent.updateUI()public java.lang.String getUIClassID()
getUIClassID in class javax.swing.JComponentJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public FontChooserUI getUI()
public java.awt.Font getSelectedFont()
setSelectedFont(java.awt.Font)public void setSelectedFont(java.awt.Font font)
font - the font to be selectedgetSelectedFontpublic void setEffectSet(java.lang.Object[] effects)
effects - the font effectsgetEffectSet()public java.lang.Object[] getEffectSet()
setEffectSet(java.lang.Object[])public void setSelectedEffects(java.lang.Object[] selectedEffects)
selectedEffects - the selected font effectsgetSelectedEffects()public java.lang.Object[] getSelectedEffects()
setSelectedEffects(java.lang.Object[])public void setFontColor(java.awt.Color fontColor)
fontColor - the current font colorgetFontColor()public java.awt.Color getFontColor()
setFontColor(java.awt.Color)public void setFontLocale(java.util.Locale fontLocale)
fontLocale - the current font localegetFontLocale()public java.util.Locale getFontLocale()
setFontLocale(java.util.Locale)public int showDialog(java.awt.Component parent)
JFontChooser and parented
to parent with the dialog having a default title.parent - the parent of the dialogshowDialog(java.awt.Component)
public int showDialog(java.awt.Component parent,
java.lang.String title)
JFontChooser and parented
to parent with the dialog having a title title.parent - the parent of the dialogtitle - the title for the dialogshowDialog(java.awt.Component)
protected javax.swing.JDialog createDialog(java.awt.Component parent,
java.lang.String title,
JFontChooser fontChooser,
java.awt.event.ActionListener okListener,
java.awt.event.ActionListener cancelListener)
JFontChooser.parent - the parent of the dialogprotected java.lang.String paramString()
JFontChooser.
This method
is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. The returned string may be empty but may not
be null.paramString in class javax.swing.JComponentJFontChooserpublic javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext in interface javax.accessibility.AccessiblegetAccessibleContext in class javax.swing.JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||