JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.event
Class Chart3dPointDataEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.chart3d.event.Chart3dDataEvent
              |
              +--com.klg.jclass.chart3d.event.Chart3dPointDataEvent
All Implemented Interfaces:
Serializable

public class Chart3dPointDataEvent
extends Chart3dDataEvent

Class used to encapsulate a chart 3d point data change event.

See Also:
Serialized Form

Field Summary
static int ADD_SERIES
          Enum value indicating a data series has been added to the end of the set of data series.
static int INSERT_SERIES
          Enum value indicating a data series has ben inserted at a particular index in the set of data series.
static int RELOAD_ALL_SERIES_LABELS
          Enum value indicating all series labels need to be reloaded.
static int RELOAD_POINT
          Enum value indicating a single data value has changed.
static int RELOAD_SERIES
          Enum value indicating a data series has changed.
static int RELOAD_SERIES_LABEL
          Enum value indicating a particular series label needs to be reloaded.
static int REMOVE_SERIES
          Enum value indicating a data series has been removed.
 
Fields inherited from class com.klg.jclass.chart3d.event.Chart3dDataEvent
DATA_EVENT_LAST, index, RELOAD, RELOAD_DATA_SOURCE_NAME, RELOAD_HOLE_VALUE, RESET, type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Chart3dPointDataEvent(Object dataSrc, int type, com.klg.jclass.chart3d.JCData3dPointIndex index)
          Constructor used to create a ChartDataEvent object, with the chart data changes and the data source
 
Method Summary
 int getPoint()
          Retrieves the point index associated with the event.
 int getSeries()
          Retrieves the series index associated with the event.
 
Methods inherited from class com.klg.jclass.chart3d.event.Chart3dDataEvent
getIndex, 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

RELOAD_POINT

public static final int RELOAD_POINT
Enum value indicating a single data value has changed. In this case, seriesIndex and pointIndex are used to index the point. An event of this type should be used when a value has been changed in a series value array that has previously been queried by the chart from the data source. If the array needs to be regenerated, RELOAD_SERIES should be used instead.

See Also:
Constant Field Values

RELOAD_SERIES

public static final int RELOAD_SERIES
Enum value indicating a data series has changed. In this case, seriesIndex points to the series to reload. An event of this type will requery the series value array from the data source.

See Also:
Constant Field Values

ADD_SERIES

public static final int ADD_SERIES
Enum value indicating a data series has been added to the end of the set of data series.

See Also:
Constant Field Values

INSERT_SERIES

public static final int INSERT_SERIES
Enum value indicating a data series has ben inserted at a particular index in the set of data series. In this case, seriesIndex holds the index at which to insert the series.

See Also:
Constant Field Values

REMOVE_SERIES

public static final int REMOVE_SERIES
Enum value indicating a data series has been removed. In this case, seriesIndex holds the index of the series to be removed.

See Also:
Constant Field Values

RELOAD_SERIES_LABEL

public static final int RELOAD_SERIES_LABEL
Enum value indicating a particular series label needs to be reloaded. seriesIndex indicates which label should be reloaded.

See Also:
Constant Field Values

RELOAD_ALL_SERIES_LABELS

public static final int RELOAD_ALL_SERIES_LABELS
Enum value indicating all series labels need to be reloaded.

See Also:
Constant Field Values
Constructor Detail

Chart3dPointDataEvent

public Chart3dPointDataEvent(Object dataSrc,
                             int type,
                             com.klg.jclass.chart3d.JCData3dPointIndex index)
Constructor used to create a ChartDataEvent object, with the chart data changes and the data source

Parameters:
dataSrc - the data source
type - data change type to pass to the views
index - points to series and point affected by the change
Method Detail

getPoint

public int getPoint()
Retrieves the point index associated with the event.

Returns:
int the index of the point affected. Returns -100 if all points are affected.

getSeries

public int getSeries()
Retrieves the series index associated with the event.

Returns:
int the index of the series affected. Returns -100 if all series are affected.

Copyright © 2004 Quest Software Inc..
All rights reserved.