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.
-
ADD_COLUMN
-
Enum value indicated a column of data values has been added.
-
ADD_ROW
-
Enum value indicated a row of data values has been added.
-
ADD_VALUE
-
Enum value indicated a single data value has been added.
-
CHANGE_COLUMN
-
Enum value indicated a column of data values has changed.
-
CHANGE_POINT_LABEL
- Enum value indicating that a point label has changed.
-
CHANGE_ROW
-
Enum value indicated a row of data values has changed.
-
CHANGE_SERIES_LABEL
- Enum value indicating that a series label has changed.
-
CHANGE_SERIES_NAME
- Enum value indicating that a series name has changed.
-
CHANGE_VALUE
-
Enum value indicated a single data value has changed.
-
column
- Column impacted by message (if applicable).
-
message
- Message send from the data to Chart.
-
REMOVE_COLUMN
-
Enum value indicated a column of data values has been removed.
-
REMOVE_ROW
-
Enum value indicated a row of data values has been removed.
-
REMOVE_VALUE
-
Enum value indicated a single data value has been removed.
-
RESET
- Enum value indicating that the data has changed significantly.
-
row
- Row impacted by message (if applicable).
-
ChartDataModelUpdate(int, int, int)
- Constructor used by ChartDataModel subclasses to inform
views of data changes.
message
public int message
- Message send from the data to Chart. One of the enum values
specified in this class
row
public int row
- Row impacted by message (if applicable).
column
public int column
- Column impacted by message (if applicable).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
CHANGE_SERIES_NAME
public static final int CHANGE_SERIES_NAME
- Enum value indicating that a series name has changed. "row"
indicates the series number.
CHANGE_SERIES_LABEL
public static final int CHANGE_SERIES_LABEL
- Enum value indicating that a series label has changed. "row"
indicates the series number.
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.
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