com.jidesoft.chart.annotation
Class ChartArrow
java.lang.Object
com.jidesoft.chart.annotation.ChartArrow
- All Implemented Interfaces:
- Annotation, ChartAnnotation
public class ChartArrow
- extends Object
- implements ChartAnnotation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultZOrder
public static final int defaultZOrder
- See Also:
- Constant Field Values
ChartArrow
public ChartArrow(Point2D from,
Point2D to)
- Create an Arrow to add to a chart
- Parameters:
from
- the base of the arrow in user coordinatesto
- the tip of the arrow in user coordinates
setFromPixelOffset
public void setFromPixelOffset(Point p)
setToPixelOffset
public void setToPixelOffset(Point toPixelOffset)
setZOrder
public void setZOrder(int zOrder)
getZOrder
public int getZOrder()
- Specified by:
getZOrder
in interface ChartAnnotation
getColor
public Color getColor()
- Retrieve the color of the arrow
- Returns:
- the color of the arrow
setColor
public void setColor(Color color)
- Specify the color of the arrow
- Parameters:
color
- the color of the arrow
draw
public void draw(Graphics2D g2d,
Chart chart)
- Specified by:
draw
in interface ChartAnnotation