JComponentPack 1.5.0

com.zfqjava.swing.event
Class BasicChartModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.zfqjava.swing.event.BasicChartModelEvent
All Implemented Interfaces:
Serializable

public class BasicChartModelEvent
extends EventObject

See Also:
Serialized Form

Field Summary
static int ALL_INDEX
          Identifies the all index.
static int DELETE
          Identifies the insert event type.
static int INSERT
          Identifies the insert event type.
static int NAME
          Identifies the name data type.
static int UPDATE
          Identifies the insert event type.
static int VALUE
          Identifies the value data type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BasicChartModelEvent(Object source, int firstCategory, int lastCategory, int firstSeries, int lastSeries, int type, int dataType)
          Constructs a BasicChartModelEvent.
 
Method Summary
 int getDataType()
          Returns the event data type.
 int getFirstCategory()
          Returns the firstCategory index for this event.
 int getFirstSeries()
          Returns the firstSeries index for this event.
 int getLastCategory()
          Returns the last index for this event.
 int getLastSeries()
          Returns the last index for this event.
 int getType()
          Returns the event type.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSERT

public static final int INSERT
Identifies the insert event type.

See Also:
Constant Field Values

UPDATE

public static final int UPDATE
Identifies the insert event type.

See Also:
Constant Field Values

DELETE

public static final int DELETE
Identifies the insert event type.

See Also:
Constant Field Values

VALUE

public static final int VALUE
Identifies the value data type.

See Also:
Constant Field Values

NAME

public static final int NAME
Identifies the name data type.

See Also:
Constant Field Values

ALL_INDEX

public static final int ALL_INDEX
Identifies the all index.

See Also:
Constant Field Values
Constructor Detail

BasicChartModelEvent

public BasicChartModelEvent(Object source,
                            int firstCategory,
                            int lastCategory,
                            int firstSeries,
                            int lastSeries,
                            int type,
                            int dataType)
Constructs a BasicChartModelEvent.

Parameters:
source - the event source
firstCategory - the first Category index for this event
lastCategory - the last category index for this event
firstSeries - the first series index for this event
lastSeries - the last series index for this event
type - the type for this event
Method Detail

getType

public int getType()
Returns the event type.

Returns:
the event type, one of 3 legal values:
  • BasicChartModelEvent.INSERT
  • BasicChartModelEvent.UPDATE
  • BasicChartModelEvent.DELETE

getDataType

public int getDataType()
Returns the event data type.

Returns:
the event data type, one of 4 legal values:
  • BasicChartModelEvent.VALUE
  • BasicChartModelEvent.NAME

getFirstCategory

public int getFirstCategory()
Returns the firstCategory index for this event.

Returns:
the firstCategory index for this event

getLastCategory

public int getLastCategory()
Returns the last index for this event.

Returns:
the last index for this event

getFirstSeries

public int getFirstSeries()
Returns the firstSeries index for this event.

Returns:
the firstSeries index for this event

getLastSeries

public int getLastSeries()
Returns the last index for this event.

Returns:
the last index for this event

toString

public String toString()
Overrides:
toString in class EventObject

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.