|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.annotation.AbstractAnnotation
com.ijchart.xychart.annotation.XYImageAnnotation
public class XYImageAnnotation
Title: IJChart
A image annotation that can be placed on aXYPlot
.
Description: a chart library for the Java(tm) platform.
Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
XYImageAnnotation(double x,
double y,
java.awt.Image image)
Create a new annotation to be displayed at the given location. |
|
XYImageAnnotation(double x,
double y,
java.awt.Image image,
int imageWidth,
int imageHeight)
Create a new annotation to be displayed at the given location. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
drawAnnotation(AbstractValueAxis xAxis,
RectangleEdge xAxisEdge,
AbstractValueAxis yAxis,
RectangleEdge yAxisEdge,
java.awt.geom.Rectangle2D dataArea,
ChartOrientation orientation,
AnnotationShapeCollection annotationShapes)
Draws the annotation. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
java.awt.Image |
getImage()
Returns the shape. |
int |
getImageHeight()
Returns the image height. |
int |
getImageWidth()
Returns the image width. |
double |
getX()
Returns the x coordinate for image. |
double |
getY()
Returns the y coordinate for image. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setImage(java.awt.Image image)
Sets the shape and sends a AnnotationChangeEvent to all registered listeners. |
void |
setImageHeight(int height)
Sets the image height and sends a AnnotationChangeEvent to all registered listeners. |
void |
setImageWidth(int width)
Sets the image width and sends a AnnotationChangeEvent to all registered listeners. |
void |
setX(double x)
Sets the x coordinate for image and sends a AnnotationChangeEvent to all registered listeners. |
void |
setY(double y)
Sets the y coordinate for image and sends a AnnotationChangeEvent to all registered listeners. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.ijchart.xychart.annotation.AbstractAnnotation |
---|
addChangeListener, annotationChanged, fireAnnotationChanged, getTooltipText, hasListener, notifyListeners, removeAllChangeListener, removeChangeListener, setTooltipText |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XYImageAnnotation(double x, double y, java.awt.Image image)
x
- double
The x coordinate.y
- double
The y coordinate.image
- Image
The image.public XYImageAnnotation(double x, double y, java.awt.Image image, int imageWidth, int imageHeight)
x
- double
The x coordinate.y
- double
The y coordinate.image
- Image
The image.imageWidth
- int
The image width.imageHeight
- int
The image height.Method Detail |
---|
public double getX()
public void setX(double x)
AnnotationChangeEvent
to all registered listeners.
x
- double
The x coordinate.public double getY()
public void setY(double y)
AnnotationChangeEvent
to all registered listeners.
y
- double
The y coordinate.public java.awt.Image getImage()
public void setImage(java.awt.Image image)
AnnotationChangeEvent
to all registered listeners.
image
- Image
The image (null not permitted).public int getImageWidth()
public void setImageWidth(int width)
AnnotationChangeEvent
to all registered listeners.
width
- int
The width.public int getImageHeight()
public void setImageHeight(int height)
AnnotationChangeEvent
to all registered listeners.
height
- int
The height.public void drawAnnotation(AbstractValueAxis xAxis, RectangleEdge xAxisEdge, AbstractValueAxis yAxis, RectangleEdge yAxisEdge, java.awt.geom.Rectangle2D dataArea, ChartOrientation orientation, AnnotationShapeCollection annotationShapes)
drawAnnotation
in interface IXYAnnotation
xAxis
- AbstractValueAxis
The x-axis (null not permitted).xAxisEdge
- RectangleEdge
The x-axis edge (null not permitted).yAxis
- AbstractValueAxis
The y-axis (null not permitted).yAxisEdge
- RectangleEdge
The y-axis edge (null not permitted).dataArea
- Rectangle2D
The chart data area (null not permitted).orientation
- ChartOrientation
The chart orientation (null not permitted).annotationShapes
- AnnotationShapeCollection
Collects information about the annotation (null not permitted).public boolean equals(java.lang.Object obj)
equals
in class AbstractAnnotation
obj
- the object (null permitted).
public int hashCode()
hashCode
in class AbstractAnnotation
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractAnnotation
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |