|
||||||||||
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-2006 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary | |
---|---|
class |
DrawLine.DrawLineAdapter
|
static interface |
DrawLine.DrawLineListener
|
static interface |
DrawLine.DrawLineSelector
|
Field Summary | |
---|---|
protected DrawLine.DrawLineSelector |
drawLineSelector
|
java.awt.Point |
fromPoint
|
protected DrawLineHandle |
iHandle
|
java.awt.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 |
Constructor Summary | |
---|---|
DrawLine()
|
|
DrawLine(IBaseChart c)
|
Method Summary | |
---|---|
void |
addDragListener(DragListener l)
|
void |
addDrawLineListener(DrawLine.DrawLineListener l)
|
void |
addDrawLineSelector(DrawLine.DrawLineSelector selector)
|
java.awt.Point |
axisPoint(java.awt.geom.Point2D.Double p)
|
void |
chartEvent(ChartDrawEvent ce)
|
DrawLineItem |
clicked(int x,
int y)
|
DrawLineItem |
clicked(java.awt.Point p)
|
protected void |
clipDrawingRegion()
|
void |
deleteSelected()
|
protected void |
fireNew(javax.swing.event.ChangeEvent e)
|
protected void |
fireSelected(javax.swing.event.ChangeEvent e)
|
int |
getButton()
The mousebutton to activate the DrawLineTool. |
java.lang.String |
getDescription()
Gets descriptive text. |
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. |
java.lang.String |
getSummary()
Gets detailed descriptive text. |
java.awt.Cursor |
mouseEvent(java.awt.event.MouseEvent e,
java.awt.Cursor c)
|
void |
removeDragListener(DragListener l)
|
void |
removeDrawLineListener(DrawLine.DrawLineListener l)
|
void |
removeDrawLineSelector()
|
java.awt.geom.Point2D.Double |
screenPoint(java.awt.Point p)
|
void |
setButton(int value)
Defines which mousebutton activates the DrawLineTool. |
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 |
setSelected(DrawLineItem value)
|
Methods inherited from class com.steema.teechart.tools.ToolSeries |
---|
getHorizAxis, getSeries, getVertAxis, setSeries |
Methods inherited from class com.steema.teechart.tools.Tool |
---|
addMouseMotionListener, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, getBitmapEditor, readResolve, removeMouseMotionListener, setActive, setChart, toString |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.awt.Point fromPoint
public java.awt.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 void addDragListener(DragListener l)
public void removeDragListener(DragListener l)
public void addDrawLineListener(DrawLine.DrawLineListener l)
public void removeDrawLineListener(DrawLine.DrawLineListener l)
protected void fireNew(javax.swing.event.ChangeEvent e)
protected void fireSelected(javax.swing.event.ChangeEvent e)
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(java.awt.Point p)
public java.awt.Point axisPoint(java.awt.geom.Point2D.Double p)
public java.awt.geom.Point2D.Double screenPoint(java.awt.Point p)
public void deleteSelected()
public DrawLineItem getSelected()
public void setSelected(DrawLineItem value)
public ChartPen getPen()
protected void clipDrawingRegion()
public void chartEvent(ChartDrawEvent ce)
chartEvent
in class Tool
public java.awt.Cursor mouseEvent(java.awt.event.MouseEvent e, java.awt.Cursor c)
mouseEvent
in class Tool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |