|
||||||||||
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.ToolSeries
com.steema.teechart.tools.CursorTool
public class CursorTool
Title: CursorTool class
Description: Cursor tool.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary | |
---|---|
class |
CursorTool.CursorEvent
|
static interface |
CursorTool.CursorToolResolver
|
Field Summary |
---|
Fields inherited from class com.steema.teechart.tools.ToolSeries |
---|
iSeries |
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 | |
---|---|
CursorTool()
|
|
CursorTool(IBaseChart c)
|
|
CursorTool(Series s)
|
Method Summary | |
---|---|
protected void |
calcScreenPositions()
|
protected void |
changed(int snapPoint)
|
void |
chartEvent(ChartDrawEvent ce)
|
CursorClicked |
clicked(int x,
int y)
|
CursorClicked |
clicked(Point p)
|
protected Rectangle |
doGetAxisRect(Rectangle tmpResult)
|
java.lang.String |
getDescription()
Gets descriptive text. |
boolean |
getFollowMouse()
Moves Cursor when moving the mouse. |
ChartPen |
getPen()
Element Pen characteristics. |
boolean |
getSnap()
Aligns the TCursorTool with the nearest series point. |
CursorToolStyle |
getStyle()
Defines which lines of the CursorTool are shown. |
java.lang.String |
getSummary()
Gets detailed descriptive text. |
boolean |
getUseChartRect()
The full Chart rectangle is displayed instead of the boundaries defined by Series axis. |
double |
getXValue()
The X Value for vertical component of Cursor Tool. |
double |
getYValue()
The Y Value for horizontal component of Cursor Tool. |
Cursor |
mouseEvent(FrameworkMouseEvent e,
Cursor c)
|
com.steema.teechart.tools.CursorTool.NearestPoint |
nearestPoint(CursorToolStyle style)
Returns nearest point to Cursor and smallest distance value. |
void |
removeAxisRectangleResolver()
|
void |
setAxisRectangleResolver(CursorTool.CursorToolResolver resolver)
|
void |
setFollowMouse(boolean value)
Moves Cursor when moving the mouse. |
void |
setSnap(boolean value)
Sets the TCursorTool to align with the nearest series point. |
void |
setStyle(CursorToolStyle value)
Defines which lines of the CursorTool are shown. |
void |
setUseChartRect(boolean value)
Sets to full Chart rectangle instead of the boundaries defined by Series axis. |
void |
setXValue(double value)
Sets X Value for vertical component of Cursor Tool. |
void |
setYValue(double value)
Sets Y Value for horizontal component of Cursor Tool. |
int |
snapToPoint()
Moves cursor to nearest Series point and returns point index. |
Methods inherited from class com.steema.teechart.tools.ToolSeries |
---|
getHorizAxis, getSeries, getVertAxis, setSeries |
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 CursorTool()
public CursorTool(IBaseChart c)
public CursorTool(Series s)
Method Detail |
---|
public void setAxisRectangleResolver(CursorTool.CursorToolResolver resolver)
public void removeAxisRectangleResolver()
protected Rectangle doGetAxisRect(Rectangle tmpResult)
public boolean getFollowMouse()
public void setFollowMouse(boolean value)
value
- booleanpublic ChartPen getPen()
public CursorToolStyle getStyle()
public void setStyle(CursorToolStyle value)
value
- CursorToolStylepublic double getXValue()
public void setXValue(double value)
value
- doublepublic double getYValue()
public void setYValue(double value)
value
- doubleprotected void calcScreenPositions()
protected void changed(int snapPoint)
public void chartEvent(ChartDrawEvent ce)
chartEvent
in class Tool
public Cursor mouseEvent(FrameworkMouseEvent e, Cursor c)
mouseEvent
in class Tool
public CursorClicked clicked(int x, int y)
public CursorClicked clicked(Point p)
public com.steema.teechart.tools.CursorTool.NearestPoint nearestPoint(CursorToolStyle style)
style
- CursorToolStyle
public boolean getSnap()
public void setSnap(boolean value)
value
- booleanpublic int snapToPoint()
public java.lang.String getDescription()
getDescription
in class Tool
public java.lang.String getSummary()
getSummary
in class Tool
public boolean getUseChartRect()
public void setUseChartRect(boolean value)
value
- boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |