|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.dukascopy.api.ChartObjectEvent
public class ChartObjectEvent
Event used to pass parameters of chart object change
| Nested Class Summary | |
|---|---|
static class |
ChartObjectEvent.AttrType
Type of the attribute change event |
| Constructor Summary | |
|---|---|
ChartObjectEvent(Object source)
Constructor for highlighted, selected and deleted events |
|
ChartObjectEvent(Object source,
IChartObject.ATTR_BOOLEAN booleanAttrType,
boolean oldBoolean,
boolean newBoolean,
boolean isAdjusting)
Constructor for attribute change event |
|
ChartObjectEvent(Object source,
IChartObject.ATTR_COLOR colorAttrType,
Color oldColor,
Color newColor,
boolean isAdjusting)
Constructor for attribute change event |
|
ChartObjectEvent(Object source,
IChartObject.ATTR_DOUBLE doubleAttrType,
double oldDouble,
double newDouble,
boolean isAdjusting)
Constructor for attribute change event |
|
ChartObjectEvent(Object source,
IChartObject.ATTR_INT intAttrType,
int oldInt,
int newInt,
boolean isAdjusting)
Constructor for attribute change event |
|
ChartObjectEvent(Object source,
IChartObject.ATTR_LONG longAttrType,
long oldLong,
long newLong,
boolean isAdjusting)
Constructor for attribute change event |
|
ChartObjectEvent(Object source,
long oldLong,
long newLong,
double oldDouble,
double newDouble,
boolean isAdjusting)
Constructor for moved event |
|
| Method Summary | |
|---|---|
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 |
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 |
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 ajusting action. |
boolean |
isCanceled()
Returns true if event was canceled. |
void |
setNewBoolean(boolean newBoolean)
Sets new attribute value |
void |
setNewColor(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 |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChartObjectEvent(Object source)
source - related IChartObject
public ChartObjectEvent(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 action
public ChartObjectEvent(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 action
public ChartObjectEvent(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 action
public ChartObjectEvent(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 action
public ChartObjectEvent(Object source,
IChartObject.ATTR_COLOR colorAttrType,
Color oldColor,
Color newColor,
boolean isAdjusting)
source - related IChartObjectcolorAttrType - type of the attributeoldColor - old valuenewColor - new valueisAdjusting - true if event is not about final action
public ChartObjectEvent(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 action| Method Detail |
|---|
public 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 Color getOldColor()
public Color getNewColor()
public void setNewColor(Color newColor)
newColor - new attribute valuepublic IChartObject.ATTR_BOOLEAN getBooleanAttrType()
public boolean getOldBoolean()
public boolean getNewBoolean()
public void setNewBoolean(boolean newBoolean)
newBoolean - new attribute value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||