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.
-
APPEND_COLUMNS
- Enum value indicating that a column of data values has been appended
to existing data.
-
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.
-
CHART_TYPE
- Enum value indicating that the chart type should change.
-
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.
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.
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.
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