|
||||||||||
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.DrawLine
public class DrawLine
Title: DrawLine class
Description: Draw Line tool.
Copyright (c) 2005-2007 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary | |
---|---|
static interface |
DrawLine.DrawLineListener
|
static interface |
DrawLine.DrawLineSelector
|
Field Summary | |
---|---|
protected DrawLine.DrawLineSelector |
drawLineSelector
|
Point |
fromPoint
|
protected DrawLineHandle |
iHandle
|
Point |
toPoint
|
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 | |
---|---|
DrawLine()
|
|
DrawLine(IBaseChart c)
|
Method Summary | |
---|---|
void |
addDrawLineSelector(DrawLine.DrawLineSelector selector)
|
Point |
axisPoint(Point.Double p)
|
void |
chartEvent(ChartDrawEvent ce)
|
DrawLineItem |
clicked(int x,
int y)
|
DrawLineItem |
clicked(Point p)
|
protected void |
clipDrawingRegion()
|
void |
deleteSelected()
|
int |
getButton()
The mousebutton to activate the DrawLineTool. |
java.lang.String |
getDescription()
Gets descriptive text. |
DrawLineStyle |
getDrawLineStyle()
|
boolean |
getEnableDraw()
Enables/Disables the drawing of lines on the chart by the user. |
boolean |
getEnableSelect()
Enables selection of lines for repositioning on the Chart. |
DrawLines |
getLines()
Returns the list of lines drawn on the Chart. |
ChartPen |
getPen()
Element Pen characteristics. |
DrawLineItem |
getSelected()
Returns the line or lines that are currently selected. |
boolean |
getSelectNewLines()
|
java.lang.String |
getSummary()
Gets detailed descriptive text. |
Cursor |
mouseEvent(FrameworkMouseEvent e,
Cursor c)
|
protected void |
redrawLine(IGraphics3D g,
DrawLineItem line)
|
void |
removeDrawLineSelector()
|
Point.Double |
screenPoint(Point p)
|
void |
setButton(int value)
Defines which mousebutton activates the DrawLineTool. |
void |
setDrawLineStyle(DrawLineStyle value)
|
void |
setEnableDraw(boolean value)
Enables/Disables the drawing of lines on the chart by the user. |
void |
setEnableSelect(boolean value)
Enables selection of lines for repositioning on the Chart when true. |
void |
setPen(ChartPen value)
|
void |
setSelected(DrawLineItem value)
|
void |
setSelectNewLines(boolean value)
|
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 |
Field Detail |
---|
public Point fromPoint
public Point toPoint
protected DrawLineHandle iHandle
protected transient DrawLine.DrawLineSelector drawLineSelector
Constructor Detail |
---|
public DrawLine()
public DrawLine(IBaseChart c)
Method Detail |
---|
public void addDrawLineSelector(DrawLine.DrawLineSelector selector)
public void removeDrawLineSelector()
public DrawLines getLines()
public int getButton()
public void setButton(int value)
value
- intpublic boolean getEnableDraw()
public void setEnableDraw(boolean value)
value
- booleanpublic boolean getEnableSelect()
public void setEnableSelect(boolean value)
value
- booleanpublic java.lang.String getDescription()
getDescription
in class Tool
public java.lang.String getSummary()
getSummary
in class Tool
public DrawLineItem clicked(int x, int y)
public DrawLineItem clicked(Point p)
public Point axisPoint(Point.Double p)
public Point.Double screenPoint(Point p)
public void deleteSelected()
public DrawLineItem getSelected()
public void setSelected(DrawLineItem value)
public ChartPen getPen()
public void setPen(ChartPen value)
protected void redrawLine(IGraphics3D g, DrawLineItem line)
protected void clipDrawingRegion()
public void chartEvent(ChartDrawEvent ce)
chartEvent
in class Tool
public boolean getSelectNewLines()
public void setSelectNewLines(boolean value)
public DrawLineStyle getDrawLineStyle()
public void setDrawLineStyle(DrawLineStyle value)
public Cursor mouseEvent(FrameworkMouseEvent e, Cursor c)
mouseEvent
in class Tool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |