Package org.knowm.xchart
Class AnnotationImage
java.lang.Object
org.knowm.xchart.internal.chartpart.Annotation
org.knowm.xchart.AnnotationImage
- All Implemented Interfaces:
org.knowm.xchart.internal.chartpart.ChartPart
public class AnnotationImage
extends org.knowm.xchart.internal.chartpart.Annotation
-
Field Summary
Fields inherited from class org.knowm.xchart.internal.chartpart.Annotation
bounds, chart, isValueInScreenSpace, isVisible, stylerFields inherited from interface org.knowm.xchart.internal.chartpart.ChartPart
SOLID_STROKE -
Constructor Summary
Constructors Constructor Description AnnotationImage(BufferedImage image, double x, double y, boolean isValueInScreenSpace)Constructor -
Method Summary
Modifier and Type Method Description voidinit(org.knowm.xchart.internal.chartpart.Chart chart)voidpaint(Graphics2D g)voidsetImage(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
-
Field Details
-
x
protected double x -
y
protected double y
-
-
Constructor Details
-
AnnotationImage
Constructor- Parameters:
image-x-y-isValueInScreenSpace-
-
-
Method Details
-
init
public void init(org.knowm.xchart.internal.chartpart.Chart chart)- Overrides:
initin classorg.knowm.xchart.internal.chartpart.Annotation
-
paint
-
setImage
-
setX
public void setX(double x) -
setY
public void setY(double y)
-