|
||||||||||
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.Color color,
java.awt.image.ImageObserver observer)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int x,
int y,
java.awt.Color color,
java.awt.image.ImageObserver observer,
Style style)
Returns Fill with given image at given location. |
|
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. |
|
DrawImage(java.awt.Image image,
int x,
int y,
int width,
int height,
java.awt.Color color,
java.awt.image.ImageObserver observer)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int x,
int y,
int width,
int height,
java.awt.Color color,
java.awt.image.ImageObserver observer,
Style style)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer,
Style style)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color color,
java.awt.image.ImageObserver observer)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color color,
java.awt.image.ImageObserver observer,
Style style)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
Returns Fill with given image at given location. |
|
DrawImage(java.awt.Image image,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer,
Style style)
Returns Fill with given image at given location. |
Method Summary | |
java.awt.Color |
getColor()
Returns background color of the image. |
int[] |
getCoords()
Returns coordinates of the image. |
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. |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. |
void |
setColor(java.awt.Color color)
Sets background color of the image. |
void |
setCoords(int[] coords)
Sets coordinates of the image. |
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. |
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, equals, finalize, getClass, hashCode, 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 coordinateobserver
- object to be notified as more of the image is
convertedpublic 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 coordinateobserver
- object to be notified as more of the image is
convertedstyle
- rendering style for the imagepublic DrawImage(java.awt.Image image, int x, int y, java.awt.Color color, java.awt.image.ImageObserver observer)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinatecolor
- the background color to paint under the non-opaque
portions of the imageobserver
- object to be notified as more of the image is
convertedpublic DrawImage(java.awt.Image image, int x, int y, java.awt.Color color, java.awt.image.ImageObserver observer, Style style)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinatecolor
- the background color to paint under the non-opaque
portions of the imageobserver
- object to be notified as more of the image is
convertedstyle
- rendering style for the imagepublic DrawImage(java.awt.Image image, int x, int y, int width, int height, java.awt.image.ImageObserver observer)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinatewidth
- the width of the scaled imageheight
- the height of the scaled imageobserver
- object to be notified as more of the image is
convertedpublic DrawImage(java.awt.Image image, int x, int y, int width, int height, java.awt.image.ImageObserver observer, Style style)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinatewidth
- the width of the scaled imageheight
- the height of the scaled imageobserver
- object to be notified as more of the image is
convertedstyle
- rendering style for the imagepublic DrawImage(java.awt.Image image, int x, int y, int width, int height, java.awt.Color color, java.awt.image.ImageObserver observer)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinatewidth
- the width of the scaled imageheight
- the height of the scaled imagecolor
- the background color to paint under the non-opaque
portions of the imageobserver
- object to be notified as more of the image is
convertedpublic DrawImage(java.awt.Image image, int x, int y, int width, int height, java.awt.Color color, java.awt.image.ImageObserver observer, Style style)
image
- the specified image to be drawnx
- the x coordinatey
- the y coordinatewidth
- the width of the scaled imageheight
- the height of the scaled imagecolor
- the background color to paint under the non-opaque
portions of the imageobserver
- object to be notified as more of the image is
convertedstyle
- rendering style for the imagepublic DrawImage(java.awt.Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
image
- the specified image to be drawndx1
- the x coordinate of the first corner of the destination rectangle.dy1
- the y coordinate of the first corner of the destination rectangle.dx2
- the x coordinate of the second corner of the destination rectangle.dy2
- the y coordinate of the second corner of the destination rectangle.sx1
- the x coordinate of the first corner of the source rectangle.sy1
- the y coordinate of the first corner of the source rectangle.sx2
- the x coordinate of the second corner of the source rectangle.sy2
- the y coordinate of the second corner of the source rectangle.observer
- object to be notified as more of the image is
convertedpublic DrawImage(java.awt.Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer, Style style)
image
- the specified image to be drawndx1
- the x coordinate of the first corner of the destination rectangle.dy1
- the y coordinate of the first corner of the destination rectangle.dx2
- the x coordinate of the second corner of the destination rectangle.dy2
- the y coordinate of the second corner of the destination rectangle.sx1
- the x coordinate of the first corner of the source rectangle.sy1
- the y coordinate of the first corner of the source rectangle.sx2
- the x coordinate of the second corner of the source rectangle.sy2
- the y coordinate of the second corner of the source rectangle.observer
- object to be notified as more of the image is
convertedstyle
- rendering style for the imagepublic DrawImage(java.awt.Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color color, java.awt.image.ImageObserver observer)
image
- the specified image to be drawndx1
- the x coordinate of the first corner of the destination rectangle.dy1
- the y coordinate of the first corner of the destination rectangle.dx2
- the x coordinate of the second corner of the destination rectangle.dy2
- the y coordinate of the second corner of the destination rectangle.sx1
- the x coordinate of the first corner of the source rectangle.sy1
- the y coordinate of the first corner of the source rectangle.sx2
- the x coordinate of the second corner of the source rectangle.sy2
- the y coordinate of the second corner of the source rectangle.color
- the background color to paint under the non-opaque
portions of the imageobserver
- object to be notified as more of the image is
convertedpublic DrawImage(java.awt.Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color color, java.awt.image.ImageObserver observer, Style style)
image
- the specified image to be drawndx1
- the x coordinate of the first corner of the destination rectangle.dy1
- the y coordinate of the first corner of the destination rectangle.dx2
- the x coordinate of the second corner of the destination rectangle.dy2
- the y coordinate of the second corner of the destination rectangle.sx1
- the x coordinate of the first corner of the source rectangle.sy1
- the y coordinate of the first corner of the source rectangle.sx2
- the x coordinate of the second corner of the source rectangle.sy2
- the y coordinate of the second corner of the source rectangle.color
- the background color to paint under the non-opaque
portions of the imageobserver
- object to be notified as more of the image is
convertedstyle
- rendering style for the imageMethod Detail |
public void setImage(java.awt.Image image)
image
- the specified image to be drawnpublic java.awt.Image getImage()
public void setCoords(int[] coords)
coords
- the array of 2, 4 or 8 coordinatespublic int[] getCoords()
public void setColor(java.awt.Color color)
color
- the background colorpublic java.awt.Color getColor()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |