com.jidesoft.chart.annotation
Class ChartImage
java.lang.Object
com.jidesoft.chart.annotation.AbstractAnnotation
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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