public class ColorLine extends ToolAxis
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
Tool.ToolListenerbBrush, clickTolerance, listenerList, pPenchart, InternalUse| Constructor and Description |
|---|
ColorLine() |
ColorLine(Axis a) |
ColorLine(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
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.
Set to true to repaint the Chart while moving the ColorLine. |
boolean |
getDraw3D()
Draws ColorLine in 3D when true.
Default value: true |
boolean |
getDrawBehind()
Draws the ColorLine behind the series values.
Default value: false |
boolean |
getNoLimitDrag()
Allows drag of ColorLine outside of the Chart rectangle.
Default value: false |
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.
Default value: 0 |
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.
Default value: true |
void |
setDrawBehind(boolean value)
Draws the ColorLine behind the series values.
Default value: false |
void |
setNoLimitDrag(boolean value)
Allows drag of ColorLine outside of the Chart rectangle.
Default value: false |
void |
setStyle(ColorLineStyle value)
Default value: ColorLine.CUSTOM
|
void |
setValue(double value)
Sets the Axis position where the ColorLine has to be drawn.
Default value: 0 |
checkDrawHidden, getAxis, getPen, setAxisaddMouseMotionListener, addToolListener, dispose, fireActiveChanged, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, getBitmapEditor, readResolve, removeMouseMotionListener, removeToolListener, setActive, setChart, toStringgetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertypublic ColorLine()
public ColorLine(IBaseChart c)
public ColorLine(Axis a)
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 Toolpublic Cursor mouseEvent(FrameworkMouseEvent e, Cursor c)
mouseEvent in class Toolpublic java.lang.String getDescription()
getDescription in class Toolpublic java.lang.String getSummary()
getSummary in class Toolprotected 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