Package org.knowm.xchart
Class AnnotationImage
- java.lang.Object
-
- org.knowm.xchart.internal.chartpart.Annotation
-
- org.knowm.xchart.AnnotationImage
-
- All Implemented Interfaces:
ChartPart
public class AnnotationImage extends Annotation
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.image.BufferedImageimageprotected doublexprotected doubley-
Fields inherited from class org.knowm.xchart.internal.chartpart.Annotation
bounds, chart, isValueInScreenSpace, isVisible, styler
-
Fields inherited from interface org.knowm.xchart.internal.chartpart.ChartPart
SOLID_STROKE
-
-
Constructor Summary
Constructors Constructor Description AnnotationImage(java.awt.image.BufferedImage image, double x, double y, boolean isValueInScreenSpace)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(Chart chart)voidpaint(java.awt.Graphics2D g)voidsetImage(java.awt.image.BufferedImage image)voidsetX(double x)voidsetY(double y)-
Methods inherited from class org.knowm.xchart.internal.chartpart.Annotation
getBounds, getXAxisScreenValue, getXAxisScreenValueForMax, getXAxisScreenValueForMin, getYAxisScreenValue, getYAxisScreenValueForMax, getYAxisScreenValueForMin, setVisible
-
-
-
-
Method Detail
-
init
public void init(Chart chart)
- Overrides:
initin classAnnotation
-
paint
public void paint(java.awt.Graphics2D g)
-
setImage
public void setImage(java.awt.image.BufferedImage image)
-
setX
public void setX(double x)
-
setY
public void setY(double y)
-
-