|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsOperation org.jdrawing.graphics.DrawImage
Graphics element which corresponds to
Graphics.drawImage(Image, int, int, ImageObserver)
.
This element supports asynchronous image loading.
Constructor Summary | |
DrawImage(java.awt.Image image,
int x,
int y,
java.awt.image.ImageObserver observer)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int x,
int y,
java.awt.image.ImageObserver observer,
Style style)
Returns Fill with given image at given location. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Checks whether two draw image operations are equal. |
java.awt.Image |
getImage()
Gets image to be drawn. |
java.awt.image.ImageObserver |
getObserver()
Returns the ImageObserver used by this operation. |
java.awt.Shape |
getShapeOfOperation()
Returns shape of the area updated by this operation. |
int |
getX()
Returns X coordinate of the image. |
int |
getY()
Returns X coordinate of the image. |
int |
hashCode()
Returns the hashcode for this draw image operation. |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. |
void |
setImage(java.awt.Image image)
Sets image to be drawn. |
void |
setObserver(java.awt.image.ImageObserver observer)
Sets the ImageObserver used by this operation. |
void |
setX(int x)
Sets X coordinate of the image. |
void |
setY(int y)
Sets Y coordinate of the image. |
Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
contains, getBounds, getBounds2D, getPosition, getStyle, intersects, paint, setPosition, setStyle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DrawImage(java.awt.Image image, int x, int y, java.awt.image.ImageObserver observer)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinatepublic DrawImage(java.awt.Image image, int x, int y, java.awt.image.ImageObserver observer, Style style)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinateMethod Detail |
public void setImage(java.awt.Image image)
image
- the specified image to be drawnpublic java.awt.Image getImage()
public void setX(int x)
x
- the x coordinatepublic int getX()
public void setY(int y)
y
- the y coordinatepublic int getY()
public void setObserver(java.awt.image.ImageObserver observer)
ImageObserver
used by this operation.
observer
- an ImageObserver
objectpublic java.awt.image.ImageObserver getObserver()
ImageObserver
used by this operation.
ImageObserver
objectpublic void paintOperation(java.awt.Graphics2D graphics)
graphics.fill ()
.
paintOperation
in class GraphicsOperation
graphics
- graphics context to use for paintingpublic java.awt.Shape getShapeOfOperation()
getShapeOfOperation
in class GraphicsOperation
public boolean equals(java.lang.Object object)
true
if and only if the
argument is not null
and is a
DrawImage
object that has the
same attributes as this DrawImage
.
equals
in class GraphicsOperation
object
- the Object
to compare with
this DrawImage
true
if the objects are equal;
false
otherwise.public int hashCode()
hashCode
in class GraphicsOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |