org.xdat.actionListeners.parallelCoordinatesDisplaySettings
public class AxisDisplaySettingsActionListener extends java.lang.Object implements java.awt.event.ActionListener, javax.swing.event.ChangeListener
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 and Description |
---|
AxisDisplaySettingsActionListener(javax.swing.JDialog dialog,
AxisDisplaySettingsPanel panel,
ParallelCoordinatesChart 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.
|
Modifier and Type | Method and Description |
---|---|
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) |
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, ParallelCoordinatesChart chart)
dialog
- the dialogpanel
- the panelchart
- the chartpublic 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()