|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.tools.Tool
com.steema.teechart.tools.ToolAxis
com.steema.teechart.tools.ColorLine
public class ColorLine
Title: ColorLine class
Description: Color Line tool. To draw custom lines at a axis value.
Copyright (c) 2005-2007 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary |
---|
Fields inherited from class com.steema.teechart.tools.ToolAxis |
---|
iAxis |
Fields inherited from class com.steema.teechart.tools.Tool |
---|
bBrush, clickTolerance, listenerList, pPen |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
ColorLine()
|
|
ColorLine(Axis a)
|
|
ColorLine(IBaseChart c)
|
Method Summary | |
---|---|
void |
addDragListener(DragListener l)
|
protected double |
calcValue()
|
void |
chartEvent(ChartDrawEvent e)
|
boolean |
clicked(int x,
int y)
|
protected void |
doDragLine()
|
protected void |
doEndDragLine()
|
boolean |
getAllowDrag()
Allows mousedrag of Line when true. |
java.lang.String |
getDescription()
Gets descriptive text. |
boolean |
getDragging()
|
boolean |
getDragRepaint()
Repaints the Chart while moving the ColorLine when true. |
boolean |
getDraw3D()
Draws ColorLine in 3D when true. |
boolean |
getDrawBehind()
Draws the ColorLine behind the series values. |
boolean |
getNoLimitDrag()
Allows drag of ColorLine outside of the Chart rectangle. |
ColorLineStyle |
getStyle()
Default value: ColorLineStyle.CUSTOM |
java.lang.String |
getSummary()
Gets detailed descriptive text. |
double |
getValue()
Determines Axis position where the ColorLine has to be drawn. |
Cursor |
mouseEvent(FrameworkMouseEvent e,
Cursor c)
|
void |
removeDragListener(DragListener l)
|
void |
setAllowDrag(boolean value)
Allows mousedrag of Line when true. |
void |
setDragging(boolean value)
|
void |
setDragRepaint(boolean value)
Set to true to repaint the Chart while moving the ColorLine. |
void |
setDraw3D(boolean value)
Draws ColorLine in 3D when true. |
void |
setDrawBehind(boolean value)
Draws the ColorLine behind the series values. |
void |
setNoLimitDrag(boolean value)
Allows drag of ColorLine outside of the Chart rectangle. |
void |
setStyle(ColorLineStyle value)
Default value: ColorLine.CUSTOM |
void |
setValue(double value)
Sets the Axis position where the ColorLine has to be drawn. |
Methods inherited from class com.steema.teechart.tools.ToolAxis |
---|
checkDrawHidden, getAxis, getPen, setAxis |
Methods inherited from class com.steema.teechart.tools.Tool |
---|
dispose, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, readResolve, setActive, setChart, toString |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColorLine()
public ColorLine(IBaseChart c)
public ColorLine(Axis a)
Method Detail |
---|
public void addDragListener(DragListener l)
public void removeDragListener(DragListener l)
public boolean getDragging()
public void setDragging(boolean value)
public ColorLineStyle getStyle()
public void setStyle(ColorLineStyle value)
value
- ColorLineStyleprotected double calcValue()
public void chartEvent(ChartDrawEvent e)
chartEvent
in class Tool
public Cursor mouseEvent(FrameworkMouseEvent e, Cursor c)
mouseEvent
in class Tool
public java.lang.String getDescription()
getDescription
in class Tool
public java.lang.String getSummary()
getSummary
in class Tool
protected void doEndDragLine()
protected void doDragLine()
public boolean clicked(int x, int y)
public boolean getAllowDrag()
public void setAllowDrag(boolean value)
value
- booleanpublic boolean getDragRepaint()
public void setDragRepaint(boolean value)
value
- booleanpublic boolean getDraw3D()
public void setDraw3D(boolean value)
value
- booleanpublic boolean getDrawBehind()
public void setDrawBehind(boolean value)
value
- booleanpublic boolean getNoLimitDrag()
public void setNoLimitDrag(boolean value)
value
- booleanpublic double getValue()
public void setValue(double value)
value
- double
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |