Class AnnotationImage
java.lang.Object
org.knowm.xchart.internal.chartpart.Annotation
org.knowm.xchart.AnnotationImage
- All Implemented Interfaces:
ChartPart
-
Field Summary
FieldsFields inherited from class Annotation
bounds, chart, isValueInScreenSpace, isVisible, stylerFields inherited from interface ChartPart
SOLID_STROKE -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationImage(BufferedImage image, double x, double y, boolean isValueInScreenSpace) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidpaint(Graphics2D g) voidsetImage(BufferedImage image) voidsetX(double x) voidsetY(double y) Methods inherited from class Annotation
getBounds, getXAxisScreenValue, getXAxisScreenValueForMax, getXAxisScreenValueForMin, getYAxisScreenValue, getYAxisScreenValueForMax, getYAxisScreenValueForMin, setVisible
-
Field Details
-
image
-
x
protected double x -
y
protected double y
-
-
Constructor Details
-
AnnotationImage
Constructor- Parameters:
image-x-y-isValueInScreenSpace-
-
-
Method Details
-
init
- Overrides:
initin classAnnotation
-
paint
-
setImage
-
setX
public void setX(double x) -
setY
public void setY(double y)
-