|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectactionListeners.AxisDisplaySettingsActionListener
public class AxisDisplaySettingsActionListener
ActionListener that is used for the controls on the AxisDisplaySettingsPanel
.
Remembers changes made by the user and applies them when the user confirms by pressing ok on the dialog.
When the Axis that is currently being edited changes the user is asked whether he wants to save the changes to the current Axis. This is a workaround to avoid having to store each setting along with the information for which Axis it was made. Ideally all settings should be memorized and applied when the user closes the dialog with the Ok button.
Constructor Summary | |
---|---|
AxisDisplaySettingsActionListener(javax.swing.JDialog dialog,
AxisDisplaySettingsPanel panel,
Chart chart)
Instantiates a new axis display settings action listener for a specific Chart. |
|
AxisDisplaySettingsActionListener(Main mainWindow,
javax.swing.JDialog dialog,
AxisDisplaySettingsPanel panel)
Instantiates a new axis display settings action listener for editing the default settings. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
applySettings(Axis axis)
Apply settings. |
java.awt.Color |
getAxisColor()
Gets the axis color. |
java.awt.Color |
getAxisLabelColor()
Gets the axis label color. |
Axis |
getCurrentAxis()
Gets the axis that is currently being edited. |
java.awt.Color |
getTicLabelColor()
Gets the tic label color. |
boolean |
isAutoFitAxis()
Checks if Axis is autofitted. |
boolean |
isInvertAxis()
Checks if is Axis is inverted. |
boolean |
isInvertFilter()
Checks if filters are inverted. |
void |
setCurrentAxis(Axis currentAxis)
Sets the current axis. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisDisplaySettingsActionListener(Main mainWindow, javax.swing.JDialog dialog, AxisDisplaySettingsPanel panel)
mainWindow
- the main windowdialog
- the dialogpanel
- the panelpublic AxisDisplaySettingsActionListener(javax.swing.JDialog dialog, AxisDisplaySettingsPanel panel, Chart chart)
dialog
- the dialogpanel
- the panelchart
- the chartMethod Detail |
---|
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public java.awt.Color getAxisColor()
public java.awt.Color getAxisLabelColor()
public boolean isInvertFilter()
public java.awt.Color getTicLabelColor()
public Axis getCurrentAxis()
public void setCurrentAxis(Axis currentAxis)
currentAxis
- the new current axispublic void applySettings(Axis axis)
axis
- the axispublic boolean isInvertAxis()
public boolean isAutoFitAxis()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |