gui.panels
Class AxisDisplaySettingsPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by gui.panels.AxisDisplaySettingsPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class AxisDisplaySettingsPanel
extends javax.swing.JPanel

Panel to modify display settings for Objects of type Axis of the Chart.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
 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.
 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, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisDisplaySettingsPanel

public AxisDisplaySettingsPanel(Main mainWindow,
                                DisplaySettingsDialog dialog)
Instantiates a new axis display settings panel that is used to modify the user preferences.

Parameters:
mainWindow - the main window
dialog - the dialog on which the panel is located

AxisDisplaySettingsPanel

public 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. These changes are not stored in the preferences and are lost when the chart is closed.

Parameters:
mainWindow - the main window
dialog - the dialog on which the panel is located
chartFrame - the chart frame to which the settings apply.
Method Detail

setStates

public void setStates(Axis axis)
Sets the initial states of all controls.

Parameters:
axis - the new states

setActionListener

public void setActionListener(AxisDisplaySettingsActionListener cmd)
Sets the action listeners to the controls.

Parameters:
cmd - the new action listener

setOkCancelButtonTargetDefaultSettings

public void setOkCancelButtonTargetDefaultSettings()
Tells the panel that the settings should be applied to the user preferences


setOkCancelButtonTargetChart

public void setOkCancelButtonTargetChart(Chart chart)
Tells the panel that the settings should be applied to the a specific chart

Parameters:
chart - chart to which the settings should be applied

getAxisDisplaySettingsActionListener

public AxisDisplaySettingsActionListener getAxisDisplaySettingsActionListener()
Gets the axis display settings action listener.

Returns:
the axis display settings action listener

setInvertFilterSelection

public void setInvertFilterSelection(boolean invertFilterSelection)
Sets the invert filter selection.

Parameters:
invertFilterSelection - the new invert filter selection

getInvertFilterSelection

public boolean getInvertFilterSelection()
Gets the invert filter selection.

Returns:
the invert filter selection

setInvertAxisSelection

public void setInvertAxisSelection(boolean invertAxisSelection)
Sets the invert axis selection.

Parameters:
invertAxisSelection - the new invert axis selection

getInvertAxisSelection

public boolean getInvertAxisSelection()
Gets the invert axis selection.

Returns:
the invert axis selection

setAutoFitAxisSelection

public void setAutoFitAxisSelection(boolean autoFitAxisSelection)
Sets the auto fit axis selection.

Parameters:
autoFitAxisSelection - the new auto fit axis selection

getAutoFitAxisSelection

public boolean getAutoFitAxisSelection()
Gets the auto fit axis selection.

Returns:
the auto fit axis selection

getAxisLabelFontSizeSpinner

public javax.swing.JSpinner getAxisLabelFontSizeSpinner()
Gets the axis label font size spinner.

Returns:
the axis label font size spinner

getTicCountSpinner

public javax.swing.JSpinner getTicCountSpinner()
Gets the tic count spinner.

Returns:
the tic count spinner

getTicLabelFontSizeSpinner

public javax.swing.JSpinner getTicLabelFontSizeSpinner()
Gets the tic label font size spinner.

Returns:
the tic label font size spinner

getTicSizeSpinner

public javax.swing.JSpinner getTicSizeSpinner()
Gets the tic size spinner.

Returns:
the tic size spinner

getAxisWidthSpinner

public javax.swing.JSpinner getAxisWidthSpinner()
Gets the axis width spinner.

Returns:
the axis width spinner

getAxisColorButton

public ColorChoiceButton getAxisColorButton()
Gets the axis color button.

Returns:
the axis color button

getAxisLabelColorButton

public ColorChoiceButton getAxisLabelColorButton()
Gets the axis label color button.

Returns:
the axis label color button

getTicLabelColorButton

public ColorChoiceButton getTicLabelColorButton()
Gets the tic label color button.

Returns:
the tic label color button

getAxisChoiceCombo

public javax.swing.JComboBox getAxisChoiceCombo()
Gets the axis choice combo.

Returns:
the axis choice combo

getChartFrame

public ChartFrame getChartFrame()
Gets the chart frame.

Returns:
the chart frame

getAxisMax

public double getAxisMax()
Gets the axis max.

Returns:
the axis max

getAxisMin

public double getAxisMin()
Gets the axis min.

Returns:
the axis min

setAxisRangeFieldsEnabled

public void setAxisRangeFieldsEnabled(boolean fieldsEnabled)
When autofitting is switched off, this method is used to enable the fields where the ranges can be entered.

Parameters:
fieldsEnabled - specifies whether the axis range fields are enabled