public class NearestPoint extends ToolSeries
Title: NearestPoint class
Description: Nearest tool, use it to display a graphical signal when the mouse is moving near a series point.
Copyright (c) 2005-2007 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Tool.ToolListener| Modifier and Type | Field and Description |
|---|---|
int |
point |
iSeriesbBrush, clickTolerance, listenerList, pPenchart, InternalUse| Constructor and Description |
|---|
NearestPoint() |
NearestPoint(IBaseChart c) |
NearestPoint(Series s) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener l) |
void |
chartEvent(ChartDrawEvent e) |
ChartBrush |
getBrush()
Element Brush characteristics.
|
java.lang.String |
getDescription()
Gets descriptive text.
|
NearestPointDirection |
getDirection() |
boolean |
getDrawLine()
Draws a temporary line from the mouse coordinates to the nearest
point.
Default value: true |
boolean |
getFullRepaint()
Allows the whole Parent Chart to repainted when true.
Default value: true |
int |
getNearestPoint(Point p) |
ChartPen |
getPen()
Element Pen characteristics.
|
int |
getSize()
Defines the Size of the NearestTool shape.
Default value: 20 |
NearestPointStyle |
getStyle()
The shape of the NearestTool.
Default value: NearestPointStyle.Circle |
java.lang.String |
getSummary()
Gets detailed descriptive text.
|
Cursor |
mouseEvent(FrameworkMouseEvent e,
Cursor c) |
void |
removeChangeListener(ChangeListener l) |
void |
setDirection(NearestPointDirection value) |
void |
setDrawLine(boolean value)
Draws a temporary line from the mouse coordinates to the nearest
point.
Default value: true |
void |
setFullRepaint(boolean value)
Allows the whole Parent Chart to repainted when true.
Default value: true |
void |
setSize(int value)
Defines the Size of the NearestTool shape.
Default value: 20 |
void |
setStyle(NearestPointStyle value)
Sets the shape of the NearestTool.
Default value: NearestPointStyle.Circle |
getHorizAxis, getSeries, getVertAxis, setSeriesaddMouseMotionListener, addToolListener, dispose, fireActiveChanged, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, getBitmapEditor, readResolve, removeMouseMotionListener, removeToolListener, setActive, setChart, toStringgetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertypublic NearestPoint(Series s)
public NearestPoint()
public NearestPoint(IBaseChart c)
public void addChangeListener(ChangeListener l)
public void removeChangeListener(ChangeListener l)
public int getSize()
public void setSize(int value)
value - intpublic NearestPointStyle getStyle()
public void setStyle(NearestPointStyle value)
value - NearestPointStylepublic java.lang.String getDescription()
getDescription in class Toolpublic java.lang.String getSummary()
getSummary in class Toolpublic boolean getDrawLine()
public void setDrawLine(boolean value)
value - booleanpublic boolean getFullRepaint()
public void setFullRepaint(boolean value)
value - booleanpublic ChartPen getPen()
public ChartBrush getBrush()
public void chartEvent(ChartDrawEvent e)
chartEvent in class Toolpublic int getNearestPoint(Point p)
public Cursor mouseEvent(FrameworkMouseEvent e, Cursor c)
mouseEvent in class Toolpublic NearestPointDirection getDirection()
public void setDirection(NearestPointDirection value)