public class ChartPropertiesDialog
extends javax.swing.JDialog
implements java.awt.event.ActionListener
Modifier and Type | Class and Description |
---|---|
private class |
ChartPropertiesDialog.LineStyleRenderer
LineStyleRenderer Class.
|
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
private javax.swing.JButton |
btnAddYear |
private javax.swing.JButton |
btnHighlightColor |
private javax.swing.JButton |
btnPercentScarredColor |
private javax.swing.JButton |
btnRemoveYear |
private javax.swing.JButton |
btnSampleDepthColor |
private javax.swing.JButton |
btnThresholdColor |
private javax.swing.JButton |
btnVerticalGuideColor |
private javax.swing.JComboBox<FireFilterType> |
cboFilterType |
private FontChooserComboBox |
cboFontFamily |
private javax.swing.JComboBox<LineStyle> |
cboHighlightStyle |
private javax.swing.JComboBox<LabelOrientation> |
cboLabelOrientation |
private javax.swing.JComboBox<LineStyle> |
cboVerticalGuideStyle |
private javax.swing.JCheckBox |
chkAutoRangeXAxis |
private javax.swing.JCheckBox |
chkBark |
private javax.swing.JCheckBox |
chkChronologyPlot |
private javax.swing.JCheckBox |
chkCompositePlot |
private javax.swing.JCheckBox |
chkCompositeYearLabels |
private javax.swing.JCheckBox |
chkFireEvent |
private javax.swing.JCheckBox |
chkHighlightYears |
private javax.swing.JCheckBox |
chkIndexPlot |
private javax.swing.JCheckBox |
chkInjuryEvent |
private javax.swing.JCheckBox |
chkInnerRing |
private javax.swing.JCheckBox |
chkLegend |
private javax.swing.JCheckBox |
chkMajorTicks |
private javax.swing.JCheckBox |
chkMinorTicks |
private javax.swing.JCheckBox |
chkOuterRing |
private javax.swing.JCheckBox |
chkPercentScarred |
private javax.swing.JCheckBox |
chkPith |
private javax.swing.JRadioButton |
chkRecorderDepth |
private javax.swing.JRadioButton |
chkSampleDepth |
private javax.swing.JCheckBox |
chkSampleThreshold |
private javax.swing.JCheckBox |
chkSeriesLabels |
private javax.swing.JCheckBox |
chkVerticalGuides |
private javax.swing.JPanel |
contentPanel |
private YearListModel |
highlightYearsModel |
private javax.swing.JLabel |
lblLabelOrientation |
private javax.swing.JLabel |
lblLabelPadding |
private javax.swing.JLabel |
lblLabelStyle |
private javax.swing.JLabel |
lblLegend |
private javax.swing.JLabel |
lblPx |
private javax.swing.JList<java.lang.Integer> |
lstHightlightYears |
private NeoFHChart |
neoFHChart |
private javax.swing.JPanel |
panelChronologySeries |
private javax.swing.JPanel |
panelChronologySymbols |
private javax.swing.JPanel |
panelCompositeFilters |
private javax.swing.JPanel |
panelCompositeGeneral |
private javax.swing.JPanel |
panelCompositeYearLabels |
private javax.swing.JPanel |
panelIndexPlotComponents |
private javax.swing.JPanel |
panelIndexPlotGeneral |
private javax.swing.JPanel |
panelIndexPlotY1 |
private javax.swing.JPanel |
panelIndexPlotY2 |
private boolean |
preferencesChanged |
private javax.swing.JRadioButton |
radLongYearStyle |
private javax.swing.JRadioButton |
radShortYearStyle |
private static long |
serialVersionUID |
private javax.swing.JSpinner |
spnAxisY1FontSize |
private javax.swing.JSpinner |
spnAxisY2FontSize |
private javax.swing.JSpinner |
spnCompositePlotHeight |
private javax.swing.JSpinner |
spnCompositePlotLabelFontSize |
private javax.swing.JSpinner |
spnCompositeYearLabelFontSize |
private javax.swing.JSpinner |
spnFilterValue |
private javax.swing.JSpinner |
spnFirstYear |
private javax.swing.JSpinner |
spnHighlightWeight |
private javax.swing.JSpinner |
spnIndexPlotHeight |
private javax.swing.JSpinner |
spnLastYear |
private javax.swing.JSpinner |
spnMajorSpacing |
private javax.swing.JSpinner |
spnMinNumberOfSamples |
private javax.swing.JSpinner |
spnMinorSpacing |
private javax.swing.JSpinner |
spnSeriesLabelFontSize |
private javax.swing.JSpinner |
spnSeriesSpacing |
private javax.swing.JSpinner |
spnThresholdValue |
private javax.swing.JSpinner |
spnVerticalGuideWeight |
private javax.swing.JSpinner |
spnYearLabelPadding |
private javax.swing.JTextField |
txtAxisY1Label |
private javax.swing.JTextField |
txtAxisY2Label |
private javax.swing.JTextField |
txtComposite |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
ChartPropertiesDialog(NeoFHChart neoFHChart)
Create the dialog.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
TODO
|
javax.swing.JCheckBox |
getChkCompositeYearLabels()
TODO
|
static java.awt.Color |
getContrastingLabelColour(java.awt.Color newcolor)
TODO
|
boolean |
havePreferencesChanged()
TODO
|
private void |
initGUI()
Initializes the GUI.
|
private void |
saveToPreferences()
Save the chart properties to the preferences.
|
private void |
setChronologyPlotGUI()
Enable/disable GUI based components based on selections.
|
static void |
setComponentColours(java.awt.Component component,
java.awt.Color background)
TODO
|
private void |
setCompositePlotGUI()
Enable/disable GUI based components based on selections.
|
private void |
setCompositeYearLabelsGUI()
Enable/disable GUI based components based on selections.
|
private void |
setEnablePanelComponents(javax.swing.JPanel panel,
boolean enable)
TODO
|
private void |
setFromPreferences()
Set the form items to match the values currently in the preferences.
|
private void |
setHighlightYearsGUI()
Enable/disable GUI based components based on selections.
|
private void |
setIndexPlotGUI()
Enable/disable GUI based components based on selections.
|
private void |
setToDefaults()
Return all the chart properties to their default values.
|
private void |
setVerticalGuideGUI()
Enable/disable GUI based components based on selections.
|
private void |
setXAxisGui()
TODO
|
static void |
showDialog(java.awt.Component parent,
NeoFHChart neoFHChart)
TODO
|
private void |
tryAutoSetYAxisLabel()
Try and set the YAxis label to match the depth type, but only do so if the user hasn't already overridden with their own text.
|
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
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, 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, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final long serialVersionUID
private final javax.swing.JPanel contentPanel
private javax.swing.JLabel lblLegend
private javax.swing.JTextField txtAxisY1Label
private javax.swing.JTextField txtAxisY2Label
private FontChooserComboBox cboFontFamily
private javax.swing.JSpinner spnFirstYear
private javax.swing.JSpinner spnLastYear
private javax.swing.JButton btnVerticalGuideColor
private javax.swing.JSpinner spnVerticalGuideWeight
private javax.swing.JComboBox<LineStyle> cboVerticalGuideStyle
private javax.swing.JSpinner spnMajorSpacing
private javax.swing.JCheckBox chkVerticalGuides
private javax.swing.JCheckBox chkAutoRangeXAxis
private javax.swing.JCheckBox chkLegend
private javax.swing.JCheckBox chkIndexPlot
private javax.swing.JSpinner spnIndexPlotHeight
private javax.swing.JRadioButton chkSampleDepth
private javax.swing.JButton btnSampleDepthColor
private javax.swing.JRadioButton chkRecorderDepth
private javax.swing.JCheckBox chkPercentScarred
private javax.swing.JButton btnPercentScarredColor
private javax.swing.JCheckBox chkSampleThreshold
private javax.swing.JButton btnThresholdColor
private javax.swing.JSpinner spnAxisY1FontSize
private javax.swing.JSpinner spnAxisY2FontSize
private javax.swing.JSpinner spnThresholdValue
private javax.swing.JCheckBox chkChronologyPlot
private javax.swing.JCheckBox chkSeriesLabels
private javax.swing.JSpinner spnSeriesLabelFontSize
private javax.swing.JSpinner spnSeriesSpacing
private javax.swing.JCheckBox chkPith
private javax.swing.JCheckBox chkBark
private javax.swing.JCheckBox chkInnerRing
private javax.swing.JCheckBox chkOuterRing
private javax.swing.JCheckBox chkFireEvent
private javax.swing.JCheckBox chkInjuryEvent
private javax.swing.JCheckBox chkCompositePlot
private javax.swing.JSpinner spnCompositePlotHeight
private javax.swing.JCheckBox chkCompositeYearLabels
private javax.swing.JComboBox<FireFilterType> cboFilterType
private javax.swing.JSpinner spnFilterValue
private javax.swing.JSpinner spnMinNumberOfSamples
private NeoFHChart neoFHChart
private javax.swing.JCheckBox chkMajorTicks
private javax.swing.JCheckBox chkMinorTicks
private javax.swing.JSpinner spnMinorSpacing
private javax.swing.JSpinner spnCompositeYearLabelFontSize
private javax.swing.JTextField txtComposite
private javax.swing.JSpinner spnCompositePlotLabelFontSize
private javax.swing.JRadioButton radShortYearStyle
private javax.swing.JList<java.lang.Integer> lstHightlightYears
private javax.swing.JComboBox<LineStyle> cboHighlightStyle
private javax.swing.JCheckBox chkHighlightYears
private javax.swing.JSpinner spnHighlightWeight
private javax.swing.JButton btnHighlightColor
private javax.swing.JButton btnAddYear
private javax.swing.JButton btnRemoveYear
private javax.swing.JPanel panelIndexPlotGeneral
private javax.swing.JPanel panelIndexPlotComponents
private javax.swing.JPanel panelIndexPlotY1
private javax.swing.JPanel panelIndexPlotY2
private javax.swing.JPanel panelChronologySymbols
private javax.swing.JPanel panelChronologySeries
private javax.swing.JPanel panelCompositeYearLabels
private javax.swing.JPanel panelCompositeFilters
private javax.swing.JPanel panelCompositeGeneral
private YearListModel highlightYearsModel
private javax.swing.JRadioButton radLongYearStyle
private javax.swing.JLabel lblLabelStyle
private javax.swing.JLabel lblLabelPadding
private javax.swing.JSpinner spnYearLabelPadding
private javax.swing.JLabel lblPx
private javax.swing.JLabel lblLabelOrientation
private javax.swing.JComboBox<LabelOrientation> cboLabelOrientation
private boolean preferencesChanged
public ChartPropertiesDialog(NeoFHChart neoFHChart)
public static void showDialog(java.awt.Component parent, NeoFHChart neoFHChart)
parent
- neoFHChart
- private void setXAxisGui()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public boolean havePreferencesChanged()
private void tryAutoSetYAxisLabel()
private void setVerticalGuideGUI()
private void setHighlightYearsGUI()
private void setIndexPlotGUI()
private void setChronologyPlotGUI()
private void setCompositePlotGUI()
private void setCompositeYearLabelsGUI()
private void setEnablePanelComponents(javax.swing.JPanel panel, boolean enable)
panel
- enable
- public javax.swing.JCheckBox getChkCompositeYearLabels()
public static void setComponentColours(java.awt.Component component, java.awt.Color background)
component
- background
- public static java.awt.Color getContrastingLabelColour(java.awt.Color newcolor)
newcolor
- private void setToDefaults()
private void saveToPreferences()
private void setFromPreferences()
private void initGUI()