GridView
Class Plot2DPreferenceDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by GridView.Plot2DPreferenceDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class Plot2DPreferenceDialog
extends javax.swing.JDialog
implements java.awt.event.ActionListener, java.awt.event.ItemListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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  MyColorButton mAxisColorButton
           
private  javax.swing.JLabel mAxisColorLabel
           
private  MyColorButton mAxisLabelColorButton
           
private  javax.swing.JLabel mAxisLabelColorLabel
           
private  javax.swing.JCheckBox mBarChartBox
           
private  MyColorButton mBgColorButton
           
private  javax.swing.JLabel mBgColorLabel
           
private  javax.swing.JButton mCancelButton
           
private  javax.swing.ButtonGroup mChartTypeGroup
           
private  MyColorButton mCoordBoxColorButton
           
private  javax.swing.JLabel mCoordBoxLabel
           
private  javax.swing.JCheckBox mCustomRangeCheckBox
           
private  javax.swing.JTextField mEMADecayFactorField
           
private  javax.swing.JLabel mEMADecayFactorLabel
           
private static javax.swing.JFrame mFrame
           
private  javax.swing.JCheckBox mGraphPointPickingOn
           
private  MyColorButton mGridLineColorButton
           
private  javax.swing.JLabel mGridLineColorLabel
           
private  javax.swing.JCheckBox mGridOn
           
private  javax.swing.JCheckBox mJapaneseBox
           
private  javax.swing.JCheckBox mLegendCheckBox
           
private  MovingAverage<java.lang.Float> mMovingAvg
           
private  javax.swing.JButton mOkButton
           
private  TwoDPlotter<java.lang.Float> mPlot
           
private  MyColorButton mPlotColorButton
           
private  java.util.List<java.awt.Color> mPlotColorList
           
private  javax.swing.JComboBox mPlotComboBox
           
private  javax.swing.JLabel mPosXAxisLabel
           
private  javax.swing.JTextField mPosXAxisTextField
           
private  javax.swing.JLabel mPosYAxisLabel
           
private  javax.swing.JTextField mPosYAxisTextField
           
private  javax.swing.JLabel mSMANumObsLabel
           
private  javax.swing.JTextField mSMANumObsTextField
           
private  javax.swing.JCheckBox mSMAOrEMABox
           
private  javax.swing.JCheckBox mSuperimposePhaseCheckBox
           
private  javax.swing.JTabbedPane mTabbedPane
           
private  MyColorButton mTickColorButton
           
private  javax.swing.JLabel mTickColorLabel
           
private  javax.swing.JPanel mTopPanel
           
private  javax.swing.JLabel mXLabel
           
private  javax.swing.JTextField mXLabelTextField
           
private  javax.swing.JTextField mXLegendField
           
private  javax.swing.JLabel mXLegendLabel
           
private  javax.swing.JCheckBox mXMajorTickOn
           
private  javax.swing.JTextField mXMajorTickSpacingField
           
private  javax.swing.JLabel mXMaxLabel
           
private  javax.swing.JTextField mXMaxTextField
           
private  javax.swing.JLabel mXMinLabel
           
private  javax.swing.JCheckBox mXMinorTickOn
           
private  javax.swing.JTextField mXMinorTickSpacingField
           
private  javax.swing.JTextField mXMinTextField
           
private  javax.swing.JLabel mYLabel
           
private  javax.swing.JTextField mYLabelTextField
           
private  javax.swing.JTextField mYLegendField
           
private  javax.swing.JLabel mYLegendLabel
           
private  javax.swing.JCheckBox mYMajorTickOn
           
private  javax.swing.JTextField mYMajorTickSpacingField
           
private  javax.swing.JLabel mYMaxLabel
           
private  javax.swing.JTextField mYMaxTextField
           
private  javax.swing.JLabel mYMinLabel
           
private  javax.swing.JCheckBox mYMinorTickOn
           
private  javax.swing.JTextField mYMinorTickSpacingField
           
private  javax.swing.JTextField mYMinTextField
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
private Plot2DPreferenceDialog(TwoDPlotter<java.lang.Float> plot, MovingAverage<java.lang.Float> mv_avg, javax.swing.JFrame parent)
           
 
Method Summary
private  void AcceptInput()
           
 void actionPerformed(java.awt.event.ActionEvent e)
           
static Plot2DPreferenceDialog CreatePreferenceDialog(TwoDPlotter<java.lang.Float> plot, MovingAverage<java.lang.Float> mv_avg, javax.swing.JFrame parent)
           
private  java.awt.Color GetNewButtonColor(java.awt.Color oldColor)
           
 void HideDialog()
           
 void InitializeDialog()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
private  javax.swing.JPanel MakeColorDialogBox()
           
private  javax.swing.JPanel MakeFinancialDialogBox()
           
private  javax.swing.JPanel MakeFourierDialogBox()
           
private  javax.swing.JPanel MakeLabelDialogBox()
           
private  javax.swing.JPanel MakeLegendDialogBox()
           
private  javax.swing.JPanel MakeRangeDialogBox()
           
 void ShowDialog()
           
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mPlot

private TwoDPlotter<java.lang.Float> mPlot

mMovingAvg

private MovingAverage<java.lang.Float> mMovingAvg

mFrame

private static javax.swing.JFrame mFrame

mTopPanel

private javax.swing.JPanel mTopPanel

mTabbedPane

private javax.swing.JTabbedPane mTabbedPane

mOkButton

private javax.swing.JButton mOkButton

mCancelButton

private javax.swing.JButton mCancelButton

mCustomRangeCheckBox

private javax.swing.JCheckBox mCustomRangeCheckBox

mXMinLabel

private javax.swing.JLabel mXMinLabel

mXMaxLabel

private javax.swing.JLabel mXMaxLabel

mYMinLabel

private javax.swing.JLabel mYMinLabel

mYMaxLabel

private javax.swing.JLabel mYMaxLabel

mXMinTextField

private javax.swing.JTextField mXMinTextField

mXMaxTextField

private javax.swing.JTextField mXMaxTextField

mYMinTextField

private javax.swing.JTextField mYMinTextField

mYMaxTextField

private javax.swing.JTextField mYMaxTextField

mPosXAxisLabel

private javax.swing.JLabel mPosXAxisLabel

mPosXAxisTextField

private javax.swing.JTextField mPosXAxisTextField

mPosYAxisLabel

private javax.swing.JLabel mPosYAxisLabel

mPosYAxisTextField

private javax.swing.JTextField mPosYAxisTextField

mXLabel

private javax.swing.JLabel mXLabel

mXLabelTextField

private javax.swing.JTextField mXLabelTextField

mYLabel

private javax.swing.JLabel mYLabel

mYLabelTextField

private javax.swing.JTextField mYLabelTextField

mXMajorTickOn

private javax.swing.JCheckBox mXMajorTickOn

mXMinorTickOn

private javax.swing.JCheckBox mXMinorTickOn

mYMajorTickOn

private javax.swing.JCheckBox mYMajorTickOn

mYMinorTickOn

private javax.swing.JCheckBox mYMinorTickOn

mGridOn

private javax.swing.JCheckBox mGridOn

mGraphPointPickingOn

private javax.swing.JCheckBox mGraphPointPickingOn

mXMajorTickSpacingField

private javax.swing.JTextField mXMajorTickSpacingField

mXMinorTickSpacingField

private javax.swing.JTextField mXMinorTickSpacingField

mYMajorTickSpacingField

private javax.swing.JTextField mYMajorTickSpacingField

mYMinorTickSpacingField

private javax.swing.JTextField mYMinorTickSpacingField

mBgColorLabel

private javax.swing.JLabel mBgColorLabel

mBgColorButton

private MyColorButton mBgColorButton

mAxisColorLabel

private javax.swing.JLabel mAxisColorLabel

mAxisColorButton

private MyColorButton mAxisColorButton

mAxisLabelColorLabel

private javax.swing.JLabel mAxisLabelColorLabel

mAxisLabelColorButton

private MyColorButton mAxisLabelColorButton

mTickColorLabel

private javax.swing.JLabel mTickColorLabel

mTickColorButton

private MyColorButton mTickColorButton

mGridLineColorLabel

private javax.swing.JLabel mGridLineColorLabel

mGridLineColorButton

private MyColorButton mGridLineColorButton

mCoordBoxLabel

private javax.swing.JLabel mCoordBoxLabel

mCoordBoxColorButton

private MyColorButton mCoordBoxColorButton

mPlotComboBox

private javax.swing.JComboBox mPlotComboBox

mPlotColorButton

private MyColorButton mPlotColorButton

mLegendCheckBox

private javax.swing.JCheckBox mLegendCheckBox

mXLegendLabel

private javax.swing.JLabel mXLegendLabel

mYLegendLabel

private javax.swing.JLabel mYLegendLabel

mXLegendField

private javax.swing.JTextField mXLegendField

mYLegendField

private javax.swing.JTextField mYLegendField

mPlotColorList

private java.util.List<java.awt.Color> mPlotColorList

mJapaneseBox

private javax.swing.JCheckBox mJapaneseBox

mBarChartBox

private javax.swing.JCheckBox mBarChartBox

mChartTypeGroup

private javax.swing.ButtonGroup mChartTypeGroup

mSuperimposePhaseCheckBox

private javax.swing.JCheckBox mSuperimposePhaseCheckBox

mSMAOrEMABox

private javax.swing.JCheckBox mSMAOrEMABox

mSMANumObsLabel

private javax.swing.JLabel mSMANumObsLabel

mSMANumObsTextField

private javax.swing.JTextField mSMANumObsTextField

mEMADecayFactorLabel

private javax.swing.JLabel mEMADecayFactorLabel

mEMADecayFactorField

private javax.swing.JTextField mEMADecayFactorField
Constructor Detail

Plot2DPreferenceDialog

private Plot2DPreferenceDialog(TwoDPlotter<java.lang.Float> plot,
                               MovingAverage<java.lang.Float> mv_avg,
                               javax.swing.JFrame parent)
Method Detail

CreatePreferenceDialog

public static Plot2DPreferenceDialog CreatePreferenceDialog(TwoDPlotter<java.lang.Float> plot,
                                                            MovingAverage<java.lang.Float> mv_avg,
                                                            javax.swing.JFrame parent)

ShowDialog

public void ShowDialog()

HideDialog

public void HideDialog()

MakeRangeDialogBox

private javax.swing.JPanel MakeRangeDialogBox()

MakeLabelDialogBox

private javax.swing.JPanel MakeLabelDialogBox()

MakeColorDialogBox

private javax.swing.JPanel MakeColorDialogBox()

MakeLegendDialogBox

private javax.swing.JPanel MakeLegendDialogBox()

MakeFinancialDialogBox

private javax.swing.JPanel MakeFinancialDialogBox()

MakeFourierDialogBox

private javax.swing.JPanel MakeFourierDialogBox()

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

GetNewButtonColor

private java.awt.Color GetNewButtonColor(java.awt.Color oldColor)

InitializeDialog

public void InitializeDialog()

AcceptInput

private void AcceptInput()