public class DrawLine extends ToolSeries
Title: DrawLine class
Description: Draw Line tool.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Class and Description |
---|---|
class |
DrawLine.DrawLineAdapter |
static interface |
DrawLine.DrawLineListener |
static interface |
DrawLine.DrawLineSelector |
Tool.ToolListener
Modifier and Type | Field and Description |
---|---|
protected DrawLine.DrawLineSelector |
drawLineSelector |
Point |
fromPoint |
protected DrawLineHandle |
iHandle |
Point |
toPoint |
iSeries
bBrush, clickTolerance, listenerList, pPen
chart, InternalUse
Constructor and Description |
---|
DrawLine() |
DrawLine(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
void |
addDragListener(DragListener l) |
void |
addDrawLineListener(DrawLine.DrawLineListener l) |
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() |
protected void |
fireNew(ChangeEvent e) |
protected void |
fireSelected(ChangeEvent e) |
int |
getButton()
The mousebutton to activate the DrawLineTool.
Default value: MouseButtons.Left |
java.lang.String |
getDescription()
Gets descriptive text.
|
DrawLineStyle |
getDrawLineStyle() |
boolean |
getEnableDraw()
Enables/Disables the drawing of lines on the chart by the user.
All drawn lines are stored in the Lines method. Default value: true |
boolean |
getEnableSelect()
Enables selection of lines for repositioning on the Chart.
Default value: true |
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 |
removeDragListener(DragListener l) |
void |
removeDrawLineListener(DrawLine.DrawLineListener l) |
void |
removeDrawLineSelector() |
Point.Double |
screenPoint(Point p) |
void |
setButton(int value)
Defines which mousebutton activates the DrawLineTool.
Default value: MouseButtons.Left |
void |
setDrawLineStyle(DrawLineStyle value) |
void |
setEnableDraw(boolean value)
Enables/Disables the drawing of lines on the chart by the user.
Default value: true |
void |
setEnableSelect(boolean value)
Enables selection of lines for repositioning on the Chart when true.
Default value: true |
void |
setPen(ChartPen value) |
void |
setSelected(DrawLineItem value) |
void |
setSelectNewLines(boolean value) |
getHorizAxis, getSeries, getVertAxis, setSeries
addMouseMotionListener, addToolListener, dispose, fireActiveChanged, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, getBitmapEditor, readResolve, removeMouseMotionListener, removeToolListener, setActive, setChart, toString
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public Point fromPoint
public Point toPoint
protected DrawLineHandle iHandle
protected transient DrawLine.DrawLineSelector drawLineSelector
public DrawLine()
public DrawLine(IBaseChart c)
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(ChangeEvent e)
protected void fireSelected(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(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