|
||||||||||
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
info.bioinfweb.treegraph.gui.dialogs.elementformats.FontFormatsPanel
public class FontFormatsPanel
Panel of the ElementFormatsDialog
used to edit the font formats (not including the font color).
ElementFormatsDialog
,
Serialized FormNested 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 | |
---|---|
private JCheckBox |
boldCheckBox
|
private info.webinsel.util.ChangeMonitor |
boldMonitor
|
private JList |
fontFamilyList
|
private info.webinsel.util.swing.SwingChangeMonitor |
fontFamilyMonitor
|
private JPanel |
fontFamilyPanel
|
private JTextField |
fontFamilyTextField
|
private DistanceValueInput |
fontHeightInput
|
private JPanel |
fontHeightPanel
|
private JPanel |
fontStylePanel
|
private JCheckBox |
italicCheckBox
|
private info.webinsel.util.ChangeMonitor |
italicMonitor
|
private JPanel |
previewPanel
|
private JTextField |
previewTextField
|
private static long |
serialVersionUID
|
private JCheckBox |
underlineCheckBox
|
private info.webinsel.util.ChangeMonitor |
underlineMonitor
|
private static int |
VISIBLE_ROW_COUNT
|
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 | |
---|---|
FontFormatsPanel()
This is the default constructor |
Method Summary | |
---|---|
void |
addError(List<String> list)
Adds error messages to the given list, if this tab contains any invalid user inputs. |
void |
addOperators(List<FormatOperator> list)
|
void |
assignValue(TextFormats f)
|
private JCheckBox |
getBoldCheckBox()
This method initializes boldCheckBox |
private JList |
getFontFamilyList()
This method initializes fontFamilyList |
private JPanel |
getFontFamilyPanel()
This method initializes fontFamilyPanel |
private JTextField |
getFontFamilyTextField()
This method initializes fontFamilyTextField |
private DistanceValueInput |
getFontHeightInput()
|
private JPanel |
getFontHeightPanel()
This method initializes fontHeightPanel |
private JPanel |
getFontStylePanel()
This method initializes fontStylePanel |
private JCheckBox |
getItalicCheckBox()
This method initializes italicCheckBox |
private JPanel |
getPreviewPanel()
This method initializes previewPanel |
private JTextField |
getPreviewTextField()
This method initializes previewTextField |
private JCheckBox |
getUnderlineCheckBox()
This method initializes underlineCheckBox |
private void |
initialize()
This method initializes this |
void |
preview()
|
void |
resetChangeMonitors()
|
private void |
selectInFontList(String value)
Selects an entry in the font list which is equal or similar to the specified string. |
void |
setValue(TextFormats f)
|
boolean |
setValues(TreeSelection selection)
The values of the first compatible element in the selection should be set to the input components of this tab. |
String |
title()
|
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 |
---|
private static final long serialVersionUID
private static final int VISIBLE_ROW_COUNT
private JPanel fontFamilyPanel
private JPanel fontStylePanel
private JPanel fontHeightPanel
private JPanel previewPanel
private JCheckBox boldCheckBox
private JCheckBox italicCheckBox
private JCheckBox underlineCheckBox
private DistanceValueInput fontHeightInput
private JTextField previewTextField
private JList fontFamilyList
private JTextField fontFamilyTextField
private info.webinsel.util.swing.SwingChangeMonitor fontFamilyMonitor
private info.webinsel.util.ChangeMonitor boldMonitor
private info.webinsel.util.ChangeMonitor italicMonitor
private info.webinsel.util.ChangeMonitor underlineMonitor
Constructor Detail |
---|
public FontFormatsPanel()
Method Detail |
---|
public boolean setValues(TreeSelection selection)
ElementFormatTab
setValues
in interface ElementFormatTab
selection
- the currently selected tree elements
false
if no compatible element was selectedpublic String title()
title
in interface ElementFormatTab
public void addOperators(List<FormatOperator> list)
addOperators
in interface ElementFormatTab
public void addError(List<String> list)
ElementFormatTab
addError
in interface ElementFormatTab
list
- the list to add the messaged toprivate DistanceValueInput getFontHeightInput()
public void setValue(TextFormats f)
public void assignValue(TextFormats f)
public void resetChangeMonitors()
resetChangeMonitors
in interface ElementFormatTab
public void preview()
private void selectInFontList(String value)
value
- private void initialize()
private JPanel getFontFamilyPanel()
private JPanel getFontStylePanel()
private JPanel getFontHeightPanel()
private JPanel getPreviewPanel()
private JCheckBox getBoldCheckBox()
private JCheckBox getItalicCheckBox()
private JCheckBox getUnderlineCheckBox()
private JTextField getPreviewTextField()
private JList getFontFamilyList()
private JTextField getFontFamilyTextField()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |