|
||||||||||
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 | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--gate.gui.TextAttributesChooser
A dialog used to set the attributes for text display. The attribute set includes font family, size, foreground and background colours, italic, bold, etc.
Inner classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Inner classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Inner classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.AWTTreeLock |
Field Summary | |
(package private) JColorChooser |
bgChooser
|
(package private) JCheckBox |
boldChk
|
(package private) JButton |
cancelButton
|
(package private) boolean |
choice
|
(package private) MutableAttributeSet |
currentStyle
|
(package private) JColorChooser |
fgChooser
|
(package private) JComboBox |
fontFamilyCombo
|
(package private) JComboBox |
fontSizeCombo
|
(package private) JCheckBox |
italicChk
|
(package private) JButton |
okButton
|
(package private) JTextPane |
sampleText
|
(package private) JCheckBox |
strikethroughChk
|
(package private) JCheckBox |
subscriptChk
|
(package private) JCheckBox |
superscriptChk
|
(package private) JCheckBox |
underlineChk
|
(package private) JCheckBox |
useBackgroundChk
|
(package private) JCheckBox |
useForegroundChk
|
Fields inherited from class javax.swing.JDialog |
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
base, keepBlocking, modal, nameCounter, resizable, serialVersionUID, title |
Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, state, warningString, weakThis, windowListener, windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TextAttributesChooser()
|
|
TextAttributesChooser(Dialog parent,
String title,
boolean modal)
|
|
TextAttributesChooser(Frame parent,
String title,
boolean modal)
|
Method Summary | |
(package private) void |
jbInit()
|
static void |
main(String[] args)
Test code |
AttributeSet |
show(AttributeSet style)
Initialises all the values for the attributes from the provided attribute set and displays the dialog allowing the user to make changes. |
protected void |
updateData()
Updates all the GUI components to show the values in the current attribute set. |
protected void |
updateSample()
Updates the sample text with the current attributes. |
Methods inherited from class java.awt.Dialog |
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
JComboBox fontFamilyCombo
JComboBox fontSizeCombo
JCheckBox boldChk
JCheckBox italicChk
JCheckBox underlineChk
JCheckBox subscriptChk
JCheckBox superscriptChk
JCheckBox strikethroughChk
JCheckBox useForegroundChk
JCheckBox useBackgroundChk
JColorChooser fgChooser
JColorChooser bgChooser
JTextPane sampleText
JButton okButton
JButton cancelButton
MutableAttributeSet currentStyle
boolean choice
Constructor Detail |
public TextAttributesChooser(Frame parent, String title, boolean modal)
public TextAttributesChooser(Dialog parent, String title, boolean modal)
public TextAttributesChooser()
Method Detail |
void jbInit() throws Exception
public AttributeSet show(AttributeSet style)
the
- attribute set to be used as a starting point for the user's
selectionsAttributeSet
containing the values
selected by the user.protected void updateData()
protected void updateSample()
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |