|
||||||||||
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.IconPieChartLabelPanel
public class IconPieChartLabelPanel
Panel of the ElementFormatsDialog
used to edit the icon label color.
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 | |
---|---|
private JLabel |
colorLabel
|
private JList |
colorList
|
private JScrollPane |
colorListScrollPane
|
private JPanel |
dimensionPanel
|
private JComboBox |
iconComboBox
|
private JCheckBox |
iconFilledCheckBox
|
private info.webinsel.util.swing.SwingChangeMonitor |
iconFilledMonitor
|
private DistanceValueInput |
iconHeightInput
|
private info.webinsel.util.swing.SwingChangeMonitor |
iconMonitor
|
private JPanel |
iconPanel
|
private IconPreviewPanel |
iconPreviewPanel
|
private DistanceValueInput |
iconWidthInput
|
private info.webinsel.util.ChangeMonitor |
internalLinesMonitor
|
private info.webinsel.util.ChangeMonitor |
nullLinesMonitor
|
private JPanel |
pieChartPanel
|
private info.webinsel.util.ChangeMonitor |
pieColorMonitor
|
static int |
PREVIEW_SIZE
|
private JLabel |
previewLabel
|
private JCheckBox |
showInternalLinesCheckBox
|
private JCheckBox |
showNullLinesCheckBox
|
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 | |
---|---|
IconPieChartLabelPanel()
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> operators)
|
private Color[] |
getColorArray()
|
private JList |
getColorList()
This method initializes colorList |
private PieColorListEntry |
getColorListEntry(int index)
|
private DefaultListModel |
getColorListModel()
|
private JScrollPane |
getColorListScrollPane()
This method initializes colorListScrollPane |
private JPanel |
getDimensionPanel()
This method initializes dimensionPanel |
private DistanceValueInput |
getHeightInput()
|
private JComboBox |
getIconComboBox()
This method initializes iconComboBox |
private LabelIconComboBoxModel |
getIconComboBoxModel()
|
private JCheckBox |
getIconFilledCheckBox()
This method initializes iconFilledCheckBox |
private JPanel |
getIconPanel()
This method initializes iconPanel |
private IconPreviewPanel |
getIconPreviewPanel()
This method initializes iconPreviewPanel |
private JPanel |
getPieChartPanel()
This method initializes pieChartPanel |
private JCheckBox |
getShowInternalLinesCheckBox()
This method initializes showInternalLinesCheckBox |
private JCheckBox |
getShowNullLinesCheckBox()
This method initializes showNullLinesCheckBox |
private DistanceValueInput |
getWidthInput()
|
private void |
initialize()
This method initializes this |
private void |
paintIconPreview()
|
void |
resetChangeMonitors()
|
private void |
setIconValues(IconLabelFormats f)
|
void |
setLabelFormats(GraphicalLabelFormats f)
Sets the values of a formats object according to the user input. |
void |
setPieChartElementsVisible(boolean visible)
|
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 |
---|
public static final int PREVIEW_SIZE
private info.webinsel.util.swing.SwingChangeMonitor iconMonitor
private info.webinsel.util.swing.SwingChangeMonitor iconFilledMonitor
private info.webinsel.util.ChangeMonitor pieColorMonitor
private info.webinsel.util.ChangeMonitor internalLinesMonitor
private info.webinsel.util.ChangeMonitor nullLinesMonitor
private JPanel iconPanel
private JComboBox iconComboBox
private IconPreviewPanel iconPreviewPanel
private DistanceValueInput iconWidthInput
private DistanceValueInput iconHeightInput
private JCheckBox iconFilledCheckBox
private JPanel dimensionPanel
private JPanel pieChartPanel
private JLabel previewLabel
private JScrollPane colorListScrollPane
private JList colorList
private JLabel colorLabel
private JCheckBox showInternalLinesCheckBox
private JCheckBox showNullLinesCheckBox
Constructor Detail |
---|
public IconPieChartLabelPanel()
Method Detail |
---|
public void addError(List<String> list)
ElementFormatTab
addError
in interface ElementFormatTab
list
- the list to add the messaged topublic String title()
title
in interface ElementFormatTab
public boolean setValues(TreeSelection selection)
ElementFormatTab
setValues
in interface ElementFormatTab
selection
- the currently selected tree elements
false
if no compatible element was selectedprivate void setIconValues(IconLabelFormats f)
private Color[] getColorArray()
public void addOperators(List<FormatOperator> operators)
addOperators
in interface ElementFormatTab
public void resetChangeMonitors()
resetChangeMonitors
in interface ElementFormatTab
public void setLabelFormats(GraphicalLabelFormats f)
f
- the formats object to store the user inputpublic void setPieChartElementsVisible(boolean visible)
private void paintIconPreview()
private void initialize()
private JPanel getIconPanel()
private DistanceValueInput getWidthInput()
private DistanceValueInput getHeightInput()
private JComboBox getIconComboBox()
private LabelIconComboBoxModel getIconComboBoxModel()
private IconPreviewPanel getIconPreviewPanel()
private JCheckBox getIconFilledCheckBox()
private JPanel getDimensionPanel()
private JPanel getPieChartPanel()
private JScrollPane getColorListScrollPane()
private JList getColorList()
private DefaultListModel getColorListModel()
private PieColorListEntry getColorListEntry(int index)
private JCheckBox getShowInternalLinesCheckBox()
private JCheckBox getShowNullLinesCheckBox()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |