com.datamessenger.awt.graphics
Class ImagePane
java.lang.Object
|
+--java.awt.geom.RectangularShape
|
+--java.awt.geom.Rectangle2D
|
+--java.awt.Rectangle
|
+--com.datamessenger.awt.graphics.GraphicsPane
|
+--com.datamessenger.awt.graphics.ImagePane
- public class ImagePane
- extends GraphicsPane
- implements java.awt.image.ImageObserver
- See Also:
- Serialized Form
| Inner classes inherited from class java.awt.geom.Rectangle2D |
java.awt.geom.Rectangle2D.Double,
java.awt.geom.Rectangle2D.Float |
| Fields inherited from class java.awt.Rectangle |
height,
width,
x,
y |
| Fields inherited from class java.awt.geom.Rectangle2D |
OUT_BOTTOM,
OUT_LEFT,
OUT_RIGHT,
OUT_TOP |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT,
ALLBITS,
ERROR,
FRAMEBITS,
HEIGHT,
PROPERTIES,
SOMEBITS,
WIDTH |
|
Constructor Summary |
ImagePane(java.lang.String src)
|
ImagePane(java.lang.String src,
int cropx,
int cropy,
int cropWidth,
int cropHeight)
|
|
Method Summary |
java.awt.Image |
getImage()
Gets the base, un-scaled or tiled, Image Object. |
java.awt.Dimension |
getImageSize()
|
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int w,
int h)
|
void |
pack()
|
void |
paint(java.awt.Graphics gr)
Paint the ImagePane using a Graphics object. |
void |
setImage(java.awt.Image img)
|
void |
setImageSize(java.awt.Dimension size)
|
| Methods inherited from class com.datamessenger.awt.graphics.GraphicsPane |
add,
getBorder,
getColors,
getColorScheme,
getComponent,
getContainerContext,
getFont,
getLayout,
getLayoutBounds,
getTree,
invalidate,
layout,
layoutGraphics,
paintGraphics,
remove,
repaint,
revalidate,
setBorder,
setColorScheme,
setContainerContext,
setFont,
setLayout,
translate,
translate |
| Methods inherited from class java.awt.Rectangle |
add,
add,
add,
contains,
contains,
contains,
contains,
createIntersection,
createUnion,
equals,
getBounds,
getBounds2D,
getHeight,
getLocation,
getSize,
getWidth,
getX,
getY,
grow,
inside,
intersection,
intersects,
isEmpty,
move,
outcode,
reshape,
resize,
setBounds,
setBounds,
setLocation,
setLocation,
setRect,
setSize,
setSize,
toString,
union |
| Methods inherited from class java.awt.geom.Rectangle2D |
add,
add,
add,
contains,
contains,
getPathIterator,
getPathIterator,
hashCode,
intersect,
intersects,
intersectsLine,
intersectsLine,
outcode,
setFrame,
setRect,
union |
| Methods inherited from class java.awt.geom.RectangularShape |
clone,
contains,
contains,
getCenterX,
getCenterY,
getFrame,
getMaxX,
getMaxY,
getMinX,
getMinY,
intersects,
setFrame,
setFrame,
setFrameFromCenter,
setFrameFromCenter,
setFrameFromDiagonal,
setFrameFromDiagonal |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
progress
public int progress
- Returns an int (0 - 100) for progress during image loading.
The value (100) indicates that loading is complete.
- See Also:
ImageLoader#loadImage(ImagePane)
tileImage
public boolean tileImage
- Image is repeated until the background is filled. The first
Image is painted at the coordinates (offsetx,offsety).
- See Also:
#offsetx,
#offsety
flipHorizontal
public boolean flipHorizontal
flipVertical
public boolean flipVertical
scaleImage
public boolean scaleImage
imageLoader
protected static final ThreadStack imageLoader
buffer
protected static final java.awt.Component buffer
ImagePane
public ImagePane(java.lang.String src)
ImagePane
public ImagePane(java.lang.String src,
int cropx,
int cropy,
int cropWidth,
int cropHeight)
setImage
public void setImage(java.awt.Image img)
getImage
public java.awt.Image getImage()
- Gets the base, un-scaled or tiled, Image Object.
- Returns:
- the base Image Object
setImageSize
public void setImageSize(java.awt.Dimension size)
getImageSize
public java.awt.Dimension getImageSize()
pack
public void pack()
- Overrides:
- pack in class GraphicsPane
paint
public void paint(java.awt.Graphics gr)
- Paint the ImagePane using a Graphics object. The Object is clipped to
the bounds of the ImagePane. (see
example at top of page)
- Overrides:
- paint in class GraphicsPane
- Parameters:
a - java.awt.Graphics object (usually from the parent component)- See Also:
Rectangle.getBounds()
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int w,
int h)
- Specified by:
- imageUpdate in interface java.awt.image.ImageObserver
Comments, suggestions, and bug reports are welcomed and encouraged. Please refer them to our support page. Thank you. |
Copyright © 1999-2001 Produx House, Corp. All rights reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc.