net.sourceforge.eclipsetrader.charts
Class ObjectPlugin
java.lang.Object
net.sourceforge.eclipsetrader.charts.ObjectPlugin
- All Implemented Interfaces:
- net.sourceforge.eclipsetrader.charts.events.PlotMouseListener
- public abstract class ObjectPlugin
- extends java.lang.Object
- implements net.sourceforge.eclipsetrader.charts.events.PlotMouseListener
Base abstract class for all chart object plugins
Method Summary |
void |
dispose()
|
abstract void |
drawObject(org.eclipse.swt.graphics.GC gc,
boolean selected)
|
Plot |
getPlot()
|
Settings |
getSettings()
|
boolean |
isOverHandle(int x,
int y)
Returns whether the point at (x,y) is over the receiver's grab handles. |
boolean |
isOverLine(int x,
int y)
Returns whether the point at (x,y) is over the receiver. |
void |
mouseDown(net.sourceforge.eclipsetrader.charts.events.PlotMouseEvent e)
|
void |
mouseMove(net.sourceforge.eclipsetrader.charts.events.PlotMouseEvent e)
|
void |
mouseUp(net.sourceforge.eclipsetrader.charts.events.PlotMouseEvent e)
|
void |
setPlot(Plot plot)
|
void |
setSettings(Settings settings)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectPlugin
public ObjectPlugin()
dispose
public void dispose()
getPlot
public Plot getPlot()
setPlot
public void setPlot(Plot plot)
getSettings
public Settings getSettings()
setSettings
public void setSettings(Settings settings)
isOverLine
public boolean isOverLine(int x,
int y)
- Returns whether the point at (x,y) is over the receiver.
- Parameters:
x
- y
-
- Returns:
- true if the point is on the receiver, false otherwise
isOverHandle
public boolean isOverHandle(int x,
int y)
- Returns whether the point at (x,y) is over the receiver's grab handles.
- Parameters:
x
- y
-
- Returns:
- true if the point is on the grab handles, false otherwise
drawObject
public abstract void drawObject(org.eclipse.swt.graphics.GC gc,
boolean selected)
mouseDown
public void mouseDown(net.sourceforge.eclipsetrader.charts.events.PlotMouseEvent e)
- Specified by:
mouseDown
in interface net.sourceforge.eclipsetrader.charts.events.PlotMouseListener
mouseUp
public void mouseUp(net.sourceforge.eclipsetrader.charts.events.PlotMouseEvent e)
- Specified by:
mouseUp
in interface net.sourceforge.eclipsetrader.charts.events.PlotMouseListener
mouseMove
public void mouseMove(net.sourceforge.eclipsetrader.charts.events.PlotMouseEvent e)
- Specified by:
mouseMove
in interface net.sourceforge.eclipsetrader.charts.events.PlotMouseListener