public class ChartObjectEvent
extends java.util.EventObject
Modifier and Type | Class and Description |
---|---|
static class |
ChartObjectEvent.AttrType
Type of the attribute change event
|
Constructor and Description |
---|
ChartObjectEvent(java.lang.Object source)
Constructor for highlighted, selected and deleted events
|
ChartObjectEvent(java.lang.Object source,
IChartObject.ATTR_BOOLEAN booleanAttrType,
boolean oldBoolean,
boolean newBoolean,
boolean isAdjusting)
Constructor for attribute change event
|
ChartObjectEvent(java.lang.Object source,
IChartObject.ATTR_COLOR colorAttrType,
java.awt.Color oldColor,
java.awt.Color newColor,
boolean isAdjusting)
Constructor for attribute change event
|
ChartObjectEvent(java.lang.Object source,
IChartObject.ATTR_DOUBLE doubleAttrType,
double oldDouble,
double newDouble,
boolean isAdjusting)
Constructor for attribute change event
|
ChartObjectEvent(java.lang.Object source,
IChartObject.ATTR_INT intAttrType,
int oldInt,
int newInt,
boolean isAdjusting)
Constructor for attribute change event
|
ChartObjectEvent(java.lang.Object source,
IChartObject.ATTR_LONG longAttrType,
long oldLong,
long newLong,
boolean isAdjusting)
Constructor for attribute change event
|
ChartObjectEvent(java.lang.Object source,
long oldLong,
long newLong,
double oldDouble,
double newDouble,
boolean isAdjusting)
Constructor for moved event
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Allows to cancel changes made by this event.
|
IChartObject.ATTR_BOOLEAN |
getBooleanAttrType()
Returns name of the attribute
|
IChartObject.ATTR_COLOR |
getColorAttrType()
Returns name of the attribute
|
IChartObject.ATTR_DOUBLE |
getDoubleAttrType()
Returns name of the attribute
|
IChartObject.ATTR_INT |
getIntAttrType()
Returns name of the attribute
|
IChartObject.ATTR_LONG |
getLongAttrType()
Returns name of the attribute
|
boolean |
getNewBoolean()
Returns new value
|
java.awt.Color |
getNewColor()
Returns new value
|
double |
getNewDouble()
Returns new value
|
int |
getNewInt()
Returns new value
|
long |
getNewLong()
Returns new value
|
boolean |
getOldBoolean()
Returns old value
|
java.awt.Color |
getOldColor()
Returns old value
|
double |
getOldDouble()
Returns old value
|
int |
getOldInt()
Returns old value
|
long |
getOldLong()
Returns old value
|
ChartObjectEvent.AttrType |
getType()
Returns type of the attribute changed event
|
boolean |
isAdjusting()
Returns true if current event is for adjusting action.
|
boolean |
isCanceled()
Returns true if event was canceled.
|
void |
setNewBoolean(boolean newBoolean)
Sets new attribute value
|
void |
setNewColor(java.awt.Color newColor)
Sets new attribute value
|
void |
setNewDouble(double newDouble)
Sets new attribute value
|
void |
setNewInt(int newInt)
Sets new attribute value
|
void |
setNewLong(long newLong)
Sets new attribute value
|
public ChartObjectEvent(java.lang.Object source)
source
- related IChartObjectpublic ChartObjectEvent(java.lang.Object source, long oldLong, long newLong, double oldDouble, double newDouble, boolean isAdjusting)
source
- related IChartObjectoldLong
- old longnewLong
- new longoldDouble
- old doublenewDouble
- new doubleisAdjusting
- true if event is not about final actionpublic ChartObjectEvent(java.lang.Object source, IChartObject.ATTR_LONG longAttrType, long oldLong, long newLong, boolean isAdjusting)
source
- related IChartObjectlongAttrType
- type of the attributeoldLong
- old valuenewLong
- new valueisAdjusting
- true if event is not about final actionpublic ChartObjectEvent(java.lang.Object source, IChartObject.ATTR_DOUBLE doubleAttrType, double oldDouble, double newDouble, boolean isAdjusting)
source
- related IChartObjectdoubleAttrType
- type of the attributeoldDouble
- old valuenewDouble
- new valueisAdjusting
- true if event is not about final actionpublic ChartObjectEvent(java.lang.Object source, IChartObject.ATTR_INT intAttrType, int oldInt, int newInt, boolean isAdjusting)
source
- related IChartObjectintAttrType
- type of the attributeoldInt
- old valuenewInt
- new valueisAdjusting
- true if event is not about final actionpublic ChartObjectEvent(java.lang.Object source, IChartObject.ATTR_COLOR colorAttrType, java.awt.Color oldColor, java.awt.Color newColor, boolean isAdjusting)
source
- related IChartObjectcolorAttrType
- type of the attributeoldColor
- old valuenewColor
- new valueisAdjusting
- true if event is not about final actionpublic ChartObjectEvent(java.lang.Object source, IChartObject.ATTR_BOOLEAN booleanAttrType, boolean oldBoolean, boolean newBoolean, boolean isAdjusting)
source
- related IChartObjectbooleanAttrType
- type of the attributeoldBoolean
- old valuenewBoolean
- new valueisAdjusting
- true if event is not about final actionpublic boolean isCanceled()
public void cancel()
public ChartObjectEvent.AttrType getType()
public boolean isAdjusting()
public IChartObject.ATTR_LONG getLongAttrType()
public long getOldLong()
public long getNewLong()
public void setNewLong(long newLong)
newLong
- new attribute valuepublic IChartObject.ATTR_DOUBLE getDoubleAttrType()
public double getOldDouble()
public double getNewDouble()
public void setNewDouble(double newDouble)
newDouble
- new attribute valuepublic IChartObject.ATTR_INT getIntAttrType()
public int getOldInt()
public int getNewInt()
public void setNewInt(int newInt)
newInt
- new attribute valuepublic IChartObject.ATTR_COLOR getColorAttrType()
public java.awt.Color getOldColor()
public java.awt.Color getNewColor()
public void setNewColor(java.awt.Color newColor)
newColor
- new attribute valuepublic IChartObject.ATTR_BOOLEAN getBooleanAttrType()
public boolean getOldBoolean()
public boolean getNewBoolean()
public void setNewBoolean(boolean newBoolean)
newBoolean
- new attribute valueCopyright © 2024. All rights reserved.