JIDE 3.5.15

com.jidesoft.chart.annotation
Class ChartImage

java.lang.Object
  extended by com.jidesoft.chart.annotation.AbstractAnnotation
      extended by com.jidesoft.chart.annotation.ChartImage
All Implemented Interfaces:
Annotation, ChartAnnotation, Chartable, Comparable<Chartable>

public class ChartImage
extends AbstractAnnotation
implements Chartable, ChartAnnotation

An image that can be added to a chart. The image is stretched to fit with the rectangular bounds at [minX, minY], [maxX, maxY].

Note that the extent of the image is given in user coordinates.

Author:
Simon White (swhite@catalysoft.com)

Constructor Summary
ChartImage(double minX, double minY, double maxX, double maxY, Image image)
           
ChartImage(Positionable minX, Positionable minY, Positionable maxX, Positionable maxY, Image image)
           
 
Method Summary
 int compareTo(Chartable other)
           
 void draw(Graphics2D g, Chart chart)
           
 Image getImage()
           
 Point getPixelOffset()
           
 Positionable getX()
          Gets the x coordinate of the Chartable object
 Positionable getXMax()
           
 Positionable getXMin()
           
 Positionable getY()
          Gets the y coordinate of the Chartable object
 Positionable getYMax()
           
 Positionable getYMin()
           
 void setImage(Image image)
           
 void setPixelOffset(Point pixelOffset)
           
 void setXMax(Positionable max)
           
 void setXMin(Positionable min)
           
 void setYMax(Positionable max)
           
 void setYMin(Positionable min)
           
 
Methods inherited from class com.jidesoft.chart.annotation.AbstractAnnotation
getZOrder, setZOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.chart.annotation.ChartAnnotation
getZOrder
 

Constructor Detail

ChartImage

public ChartImage(Positionable minX,
                  Positionable minY,
                  Positionable maxX,
                  Positionable maxY,
                  Image image)

ChartImage

public ChartImage(double minX,
                  double minY,
                  double maxX,
                  double maxY,
                  Image image)
Method Detail

getImage

public Image getImage()

setImage

public void setImage(Image image)

getXMax

public Positionable getXMax()

setXMax

public void setXMax(Positionable max)

getXMin

public Positionable getXMin()

setXMin

public void setXMin(Positionable min)

getYMax

public Positionable getYMax()

setYMax

public void setYMax(Positionable max)

getYMin

public Positionable getYMin()

setYMin

public void setYMin(Positionable min)

getX

public Positionable getX()
Gets the x coordinate of the Chartable object

Specified by:
getX in interface Chartable
Returns:
the x coordinate

getY

public Positionable getY()
Gets the y coordinate of the Chartable object

Specified by:
getY in interface Chartable
Returns:
the y coordinate

getPixelOffset

public Point getPixelOffset()

setPixelOffset

public void setPixelOffset(Point pixelOffset)

compareTo

public int compareTo(Chartable other)
Specified by:
compareTo in interface Comparable<Chartable>

draw

public void draw(Graphics2D g,
                 Chart chart)
Specified by:
draw in interface ChartAnnotation

JIDE 3.5.15