JIDE 3.5.15

com.jidesoft.chart.annotation
Class ChartArrow

java.lang.Object
  extended by com.jidesoft.chart.annotation.ChartArrow
All Implemented Interfaces:
Annotation, ChartAnnotation

public class ChartArrow
extends Object
implements ChartAnnotation


Field Summary
static int defaultZOrder
           
 
Constructor Summary
ChartArrow(Point2D from, Point2D to)
          Create an Arrow to add to a chart
 
Method Summary
 void draw(Graphics2D g2d, Chart chart)
           
 Color getColor()
          Retrieve the color of the arrow
 int getZOrder()
           
 void setColor(Color color)
          Specify the color of the arrow
 void setFromPixelOffset(Point p)
           
 void setToPixelOffset(Point toPixelOffset)
           
 void setZOrder(int zOrder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultZOrder

public static final int defaultZOrder
See Also:
Constant Field Values
Constructor Detail

ChartArrow

public ChartArrow(Point2D from,
                  Point2D to)
Create an Arrow to add to a chart

Parameters:
from - the base of the arrow in user coordinates
to - the tip of the arrow in user coordinates
Method Detail

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

JIDE 3.5.15