All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.ChartDataModelUpdate

java.lang.Object
   |
   +----jclass.chart.ChartDataModelUpdate

public class ChartDataModelUpdate
extends Object
An instance of ChartDataModelUpdate is passed from the ChartDataModel to each observable whenever a change occurs in the ChartDataModel. Note that the message type can be one of the static types enumerated below.


Variable Index

 o ADD_COLUMN
Enum value indicated a column of data values has been added.
 o ADD_ROW
Enum value indicated a row of data values has been added.
 o ADD_VALUE
Enum value indicated a single data value has been added.
 o APPEND_COLUMNS
Enum value indicating that a column of data values has been appended to existing data.
 o CHANGE_COLUMN
Enum value indicated a column of data values has changed.
 o CHANGE_POINT_LABEL
Enum value indicating that a point label has changed.
 o CHANGE_ROW
Enum value indicated a row of data values has changed.
 o CHANGE_SERIES_LABEL
Enum value indicating that a series label has changed.
 o CHANGE_SERIES_NAME
Enum value indicating that a series name has changed.
 o CHANGE_VALUE
Enum value indicated a single data value has changed.
 o CHART_TYPE
Enum value indicating that the chart type should change.
 o column
Column impacted by message (if applicable).
 o message
Message send from the data to Chart.
 o REMOVE_COLUMN
Enum value indicated a column of data values has been removed.
 o REMOVE_ROW
Enum value indicated a row of data values has been removed.
 o REMOVE_VALUE
Enum value indicated a single data value has been removed.
 o RESET
Enum value indicating that the data has changed significantly.
 o row
Row impacted by message (if applicable).

Constructor Index

 o ChartDataModelUpdate(int, int, int)
Constructor used by ChartDataModel subclasses to inform views of data changes.

Variables

 o message
 public int message
Message send from the data to Chart. One of the enum values specified in this class

 o row
 public int row
Row impacted by message (if applicable).

 o column
 public int column
Column impacted by message (if applicable).

 o CHANGE_VALUE
 public static final int CHANGE_VALUE
Enum value indicated a single data value has changed. The "row" and "column" members will contain the index for the value that has changed.

 o ADD_VALUE
 public static final int ADD_VALUE
Enum value indicated a single data value has been added. The "row" and "column" members will contain the index for the value that has been added.

 o REMOVE_VALUE
 public static final int REMOVE_VALUE
Enum value indicated a single data value has been removed. The "row" and "column" members will contain the index for the value that has been removed.

 o CHANGE_ROW
 public static final int CHANGE_ROW
Enum value indicated a row of data values has changed. The "row" member indicates the index of the row that has been changed.

 o ADD_ROW
 public static final int ADD_ROW
Enum value indicated a row of data values has been added. The "row" member indicates the index of the row that has been added.

 o REMOVE_ROW
 public static final int REMOVE_ROW
Enum value indicated a row of data values has been removed. The "row" member indicates the index of the row that has been removed.

 o CHANGE_COLUMN
 public static final int CHANGE_COLUMN
Enum value indicated a column of data values has changed. The "column" member indicates the index of the column that has been changed.

 o ADD_COLUMN
 public static final int ADD_COLUMN
Enum value indicated a column of data values has been added. The "column" member indicates the index of the column that has been changed.

 o REMOVE_COLUMN
 public static final int REMOVE_COLUMN
Enum value indicated a column of data values has been removed. The "column" member indicates the index of the column that has been removed.

 o CHANGE_POINT_LABEL
 public static final int CHANGE_POINT_LABEL
Enum value indicating that a point label has changed. "row" and "column" are used to specify the index of the point label that has changed.

 o CHANGE_SERIES_NAME
 public static final int CHANGE_SERIES_NAME
Enum value indicating that a series name has changed. "row" indicates the series number.

 o CHANGE_SERIES_LABEL
 public static final int CHANGE_SERIES_LABEL
Enum value indicating that a series label has changed. "row" indicates the series number.

 o APPEND_COLUMNS
 public static final int APPEND_COLUMNS
Enum value indicating that a column of data values has been appended to existing data. The "column" member indicated the index of the first column of appended data. The "row" member indicates the number of columns being appended.

 o CHART_TYPE
 public static final int CHART_TYPE
Enum value indicating that the chart type should change. The "row" member indicates the type of chart to change to.

 o RESET
 public static final int RESET
Enum value indicating that the data has changed significantly. When a RESET message is received, Chart will re-read all the data.

Constructors

 o ChartDataModelUpdate
 public ChartDataModelUpdate(int message,
                             int row,
                             int column)
Constructor used by ChartDataModel subclasses to inform views of data changes.

Parameters:
message - message to pass to the views
row - row affected by the change
column - column affected by the change

All Packages  Class Hierarchy  This Package  Previous  Next  Index