|
||||||||||
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
gui.panels.AxisDisplaySettingsPanel
public class AxisDisplaySettingsPanel
Panel to modify display settings for Objects of type Axis
of the Chart
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
private javax.swing.ButtonGroup |
autoFitAxisButtonGroup
The auto fit axis button group. |
private javax.swing.JRadioButton |
autoFitAxisFalseButton
The auto fit axis false button. |
private javax.swing.JRadioButton |
autoFitAxisTrueButton
The auto fit axis true button. |
private javax.swing.JComboBox |
axisChoiceCombo
The axis choice combo. |
private ColorChoiceButton |
axisColorButton
The axis color button. |
private ColorChoiceButton |
axisLabelColorButton
The axis label color button. |
private javax.swing.JSpinner |
axisLabelFontSizeSpinner
The axis label font size spinner. |
private javax.swing.JTextField |
axisMaxTextField
The axis maximum value text field. |
private javax.swing.JTextField |
axisMinTextField
The axis minimum value text field. |
private javax.swing.JSpinner |
axisWidthSpinner
The axis width spinner. |
private javax.swing.JButton |
cancelButton
The cancel button. |
private ChartFrame |
chartFrame
The chart frame. |
private AxisDisplaySettingsActionListener |
cmd
The action listener for this panel. |
private TitledSubPanel |
contentPanel
The content panel. |
private DisplaySettingsDialog |
dialog
The dialog on which the panel is located. |
private javax.swing.ButtonGroup |
invertAxisButtonGroup
The invert axis button group. |
private javax.swing.JRadioButton |
invertAxisFalseButton
The invert axis false button. |
private javax.swing.JRadioButton |
invertAxisTrueButton
The invert axis true button. |
private javax.swing.ButtonGroup |
invertFilterButtonGroup
The invert filter button group. |
private javax.swing.JRadioButton |
invertFilterFalseButton
The invert filter false button. |
private javax.swing.JRadioButton |
invertFilterTrueButton
The invert filter true button. |
private Main |
mainWindow
The main window. |
private javax.swing.JButton |
okButton
The ok button. |
(package private) static boolean |
printLog
Flag to enable debug message printing for this class. |
(package private) static long |
serialVersionUID
The version tracking unique identifier for Serialization. |
private javax.swing.JSpinner |
ticCountSpinner
The tic count spinner. |
private ColorChoiceButton |
ticLabelColorButton
The tic label color button. |
private javax.swing.JSpinner |
ticLabelFontSizeSpinner
The tic label font size spinner. |
private javax.swing.JSpinner |
ticSizeSpinner
The tic size spinner. |
private UserPreferences |
userPreferences
The user preferences. |
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 | |
---|---|
AxisDisplaySettingsPanel(Main mainWindow,
DisplaySettingsDialog dialog)
Instantiates a new axis display settings panel that is used to modify the user preferences. |
|
AxisDisplaySettingsPanel(Main mainWindow,
DisplaySettingsDialog dialog,
ChartFrame chartFrame)
Instantiates a new axis display settings panel that is used to modify the settings of a particular chart. |
Method Summary | |
---|---|
private void |
buildPanel()
Builds the panel. |
boolean |
getAutoFitAxisSelection()
Gets the auto fit axis selection. |
javax.swing.JComboBox |
getAxisChoiceCombo()
Gets the axis choice combo. |
ColorChoiceButton |
getAxisColorButton()
Gets the axis color button. |
AxisDisplaySettingsActionListener |
getAxisDisplaySettingsActionListener()
Gets the axis display settings action listener. |
ColorChoiceButton |
getAxisLabelColorButton()
Gets the axis label color button. |
javax.swing.JSpinner |
getAxisLabelFontSizeSpinner()
Gets the axis label font size spinner. |
double |
getAxisMax()
Gets the axis max. |
double |
getAxisMin()
Gets the axis min. |
javax.swing.JSpinner |
getAxisWidthSpinner()
Gets the axis width spinner. |
ChartFrame |
getChartFrame()
Gets the chart frame. |
boolean |
getInvertAxisSelection()
Gets the invert axis selection. |
boolean |
getInvertFilterSelection()
Gets the invert filter selection. |
javax.swing.JSpinner |
getTicCountSpinner()
Gets the tic count spinner. |
ColorChoiceButton |
getTicLabelColorButton()
Gets the tic label color button. |
javax.swing.JSpinner |
getTicLabelFontSizeSpinner()
Gets the tic label font size spinner. |
javax.swing.JSpinner |
getTicSizeSpinner()
Gets the tic size spinner. |
private void |
log(java.lang.String message)
Prints debug information to stdout when printLog is set to true. |
void |
setActionListener(AxisDisplaySettingsActionListener cmd)
Sets the action listeners to the controls. |
void |
setAutoFitAxisSelection(boolean autoFitAxisSelection)
Sets the auto fit axis selection. |
void |
setAxisRangeFieldsEnabled(boolean fieldsEnabled)
When autofitting is switched off, this method is used to enable the fields where the ranges can be entered. |
void |
setInvertAxisSelection(boolean invertAxisSelection)
Sets the invert axis selection. |
void |
setInvertFilterSelection(boolean invertFilterSelection)
Sets the invert filter selection. |
void |
setOkCancelButtonTargetChart(Chart chart)
Tells the panel that the settings should be applied to the a specific chart |
void |
setOkCancelButtonTargetDefaultSettings()
Tells the panel that the settings should be applied to the user preferences |
void |
setStates(Axis axis)
Sets the initial states of all controls. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
static final boolean printLog
private Main mainWindow
private DisplaySettingsDialog dialog
private UserPreferences userPreferences
private AxisDisplaySettingsActionListener cmd
private TitledSubPanel contentPanel
private ColorChoiceButton axisColorButton
private ColorChoiceButton axisLabelColorButton
private javax.swing.JSpinner axisLabelFontSizeSpinner
private javax.swing.JSpinner axisWidthSpinner
private javax.swing.JSpinner ticSizeSpinner
private javax.swing.JSpinner ticCountSpinner
private ColorChoiceButton ticLabelColorButton
private javax.swing.JSpinner ticLabelFontSizeSpinner
private javax.swing.JRadioButton invertFilterTrueButton
private javax.swing.JRadioButton invertFilterFalseButton
private javax.swing.JRadioButton invertAxisTrueButton
private javax.swing.JRadioButton invertAxisFalseButton
private javax.swing.JRadioButton autoFitAxisTrueButton
private javax.swing.JRadioButton autoFitAxisFalseButton
private javax.swing.JTextField axisMinTextField
private javax.swing.JTextField axisMaxTextField
private javax.swing.ButtonGroup invertFilterButtonGroup
private javax.swing.ButtonGroup invertAxisButtonGroup
private javax.swing.ButtonGroup autoFitAxisButtonGroup
private javax.swing.JComboBox axisChoiceCombo
private javax.swing.JButton cancelButton
private javax.swing.JButton okButton
private ChartFrame chartFrame
Constructor Detail |
---|
public AxisDisplaySettingsPanel(Main mainWindow, DisplaySettingsDialog dialog)
mainWindow
- the main windowdialog
- the dialog on which the panel is locatedpublic AxisDisplaySettingsPanel(Main mainWindow, DisplaySettingsDialog dialog, ChartFrame chartFrame)
mainWindow
- the main windowdialog
- the dialog on which the panel is locatedchartFrame
- the chart frame to which the settings apply.Method Detail |
---|
public void setStates(Axis axis)
axis
- the new statesprivate void buildPanel()
public void setActionListener(AxisDisplaySettingsActionListener cmd)
cmd
- the new action listenerpublic void setOkCancelButtonTargetDefaultSettings()
public void setOkCancelButtonTargetChart(Chart chart)
chart
- chart to which the settings should be appliedpublic AxisDisplaySettingsActionListener getAxisDisplaySettingsActionListener()
public void setInvertFilterSelection(boolean invertFilterSelection)
invertFilterSelection
- the new invert filter selectionpublic boolean getInvertFilterSelection()
public void setInvertAxisSelection(boolean invertAxisSelection)
invertAxisSelection
- the new invert axis selectionpublic boolean getInvertAxisSelection()
public void setAutoFitAxisSelection(boolean autoFitAxisSelection)
autoFitAxisSelection
- the new auto fit axis selectionpublic boolean getAutoFitAxisSelection()
private void log(java.lang.String message)
message
- the messagepublic javax.swing.JSpinner getAxisLabelFontSizeSpinner()
public javax.swing.JSpinner getTicCountSpinner()
public javax.swing.JSpinner getTicLabelFontSizeSpinner()
public javax.swing.JSpinner getTicSizeSpinner()
public javax.swing.JSpinner getAxisWidthSpinner()
public ColorChoiceButton getAxisColorButton()
public ColorChoiceButton getAxisLabelColorButton()
public ColorChoiceButton getTicLabelColorButton()
public javax.swing.JComboBox getAxisChoiceCombo()
public ChartFrame getChartFrame()
public double getAxisMax()
public double getAxisMin()
public void setAxisRangeFieldsEnabled(boolean fieldsEnabled)
fieldsEnabled
- specifies whether the axis range fields are enabled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |