java.awt.image.ImageObserver, Drawable, Interactive, Measurable, SelectableBoundedTextLinepublic class BoundedImage extends BoundedShape implements java.awt.image.ImageObserver
BoundedShape.BoundedShapeLoaderInteractiveShape.InteractiveShapeLoader| Modifier and Type | Field | Description |
|---|---|---|
protected java.awt.Image |
image |
color, x, yABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHedgeColor, height, pixelSized, shape, shapeClass, theta, width, xoff, yoff| Constructor | Description |
|---|---|
BoundedImage(java.awt.Image image,
double x,
double y) |
Constructs a bounded image centered at the given location.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g) |
Draws the image.
|
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height) |
getX, getY, isEnabled, setEnabledcreateBoundedArrow, createBoundedCenteredArrow, createBoundedCircle, createBoundedEllipse, createBoundedImage, createBoundedRectangle, createBoundedTriangle, findInteractive, getLoader, getPreferredCursor, isHeightDrag, isInside, isRotateDrag, isSelected, isWidthDrag, isXYDrag, setHeightDrag, setRotateDrag, setSelected, setWidthDrag, setXYDrag, toggleSelected, toStringgetX, getY, isEnabled, setEnabled, setX, setXY, setYcontains, createArrow, createCenteredArrow, createCircle, createEllipse, createImage, createRectangle, createSquare, createTextLine, createTriangle, getHeight, getShape, getWidth, getXMax, getXMin, getYMax, getYMin, isMeasured, setHeight, setMarkerColor, setMeasured, setOffset, setPixelSized, setTheta, setWidth, setX, setXY, setY, tranform, transformgetXMax, getXMin, getYMax, getYMin, isMeasuredpublic BoundedImage(java.awt.Image image,
double x,
double y)
x - doubley - doubleimage - Imagepublic void draw(DrawingPanel panel, java.awt.Graphics g)
draw in interface Drawabledraw in class BoundedShapepanel - the world in which the arrow is viewedg - the graphics context upon which to drawpublic boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserver