customEvents
Class DataTableModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.swing.event.TableModelEvent
          extended by customEvents.DataTableModelEvent
All Implemented Interfaces:
java.io.Serializable

public class DataTableModelEvent
extends javax.swing.event.TableModelEvent

The Class DataTableModelEvent. This class is used to send information from the DataSheet to the GUI.
Whenever the data in the datasheet is modified a DataTableModelEvent should be constructed. The constructor arguments are a combination of the standard TableModelEvent constructors and xdat specific boolean flags that provide information how the change impacts the GUI.
Based on this information the DataTable will call the appropriate functions to update the GUI when receiving the DataTableModelEvent.

See Also:
DataTable, Serialized Form

Field Summary
private  boolean[] axisApplyFiltersRequired
          True for the index of each axis where the filters need to be applied.
private  boolean[] axisAutofitRequired
          True for the index of each axis that needs to be autofitted.
private  boolean[] axisResetFilterRequired
          True for the index of each axis where the filters need to be reset.
private  boolean chartRebuildRequired
          True, when the event requires rebuilding all charts
private  boolean chartRepaintRequired
          True, when the event requires repainting all charts
static int CUSTOM_TABLE_MODEL_TYPE
          Used to identify table model events that require application specific code to run.
private  boolean dataPanelUpdateRequired
          True, when the event requires updating the data panel
(package private) static long serialVersionUID
          The version tracking unique identifier for Serialization.
 
Fields inherited from class javax.swing.event.TableModelEvent
ALL_COLUMNS, column, DELETE, firstRow, HEADER_ROW, INSERT, lastRow, type, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataTableModelEvent(javax.swing.table.TableModel source, int firstRow, int lastRow, int column, boolean chartRebuildRequired, boolean chartRepaintRequired, boolean dataPanelUpdateRequired, boolean[] axisAutofitRequired, boolean[] axisResetFilterRequired, boolean[] axisApplyFiltersRequired)
          Instantiates a new data table model event.
 
Method Summary
 boolean[] getAxisApplyFiltersRequired()
          Gets the axis apply filters required.
 boolean[] getAxisAutofitRequired()
          Gets the axis autofit required.
 boolean[] getAxisResetFilterRequired()
          Gets the axis reset filter required.
 boolean isChartRebuildRequired()
          Checks if chart rebuild required is true.
 boolean isChartRepaintRequired()
          Checks if chart repaint required is true.
 boolean isDataPanelUpdateRequired()
          Checks if data Panel update required is true.
 
Methods inherited from class javax.swing.event.TableModelEvent
getColumn, getFirstRow, getLastRow, getType
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
The version tracking unique identifier for Serialization.

See Also:
Constant Field Values

chartRebuildRequired

private boolean chartRebuildRequired
True, when the event requires rebuilding all charts


chartRepaintRequired

private boolean chartRepaintRequired
True, when the event requires repainting all charts


dataPanelUpdateRequired

private boolean dataPanelUpdateRequired
True, when the event requires updating the data panel


axisAutofitRequired

private boolean[] axisAutofitRequired
True for the index of each axis that needs to be autofitted.


axisResetFilterRequired

private boolean[] axisResetFilterRequired
True for the index of each axis where the filters need to be reset.


axisApplyFiltersRequired

private boolean[] axisApplyFiltersRequired
True for the index of each axis where the filters need to be applied.


CUSTOM_TABLE_MODEL_TYPE

public static final int CUSTOM_TABLE_MODEL_TYPE
Used to identify table model events that require application specific code to run.

See Also:
Constant Field Values
Constructor Detail

DataTableModelEvent

public DataTableModelEvent(javax.swing.table.TableModel source,
                           int firstRow,
                           int lastRow,
                           int column,
                           boolean chartRebuildRequired,
                           boolean chartRepaintRequired,
                           boolean dataPanelUpdateRequired,
                           boolean[] axisAutofitRequired,
                           boolean[] axisResetFilterRequired,
                           boolean[] axisApplyFiltersRequired)
Instantiates a new data table model event.

Parameters:
source - the source
firstRow - the first row
lastRow - the last row
column - the column
chartRebuildRequired - specifies whether the event requires rebuilding all charts
chartRepaintRequired - specifies whether the event requires repainting all charts
axisAutofitRequired - specifies which axes should be autofitted as a result of the event
axisResetFilterRequired - specifies for which axes the filters should be reset as a result of the event
axisApplyFiltersRequired - specifies for which axes the filters should be applied as a result of the event
Method Detail

isChartRebuildRequired

public boolean isChartRebuildRequired()
Checks if chart rebuild required is true.

Returns:
the chartRebuildRequired state

isChartRepaintRequired

public boolean isChartRepaintRequired()
Checks if chart repaint required is true.

Returns:
the chartRepaintRequired state

isDataPanelUpdateRequired

public boolean isDataPanelUpdateRequired()
Checks if data Panel update required is true.

Returns:
the dataPanelUpdateRequired

getAxisAutofitRequired

public boolean[] getAxisAutofitRequired()
Gets the axis autofit required.

Returns:
an array of booleans where each boolean specifies, whether the corresponding axis should be autofitted.

getAxisResetFilterRequired

public boolean[] getAxisResetFilterRequired()
Gets the axis reset filter required.

Returns:
an array of booleans where each boolean specifies, whether for the corresponding axis the filters should be reset.

getAxisApplyFiltersRequired

public boolean[] getAxisApplyFiltersRequired()
Gets the axis apply filters required.

Returns:
an array of booleans where each boolean specifies, whether for the corresponding axis the filters should be reapplied.