public class InteractiveImage extends InteractiveShape implements java.awt.image.ImageObserver
InteractiveShape.InteractiveShapeLoader| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Image |
image |
edgeColor, height, pixelSized, shape, shapeClass, theta, width, xoff, yoffcolor, x, y| Constructor and Description |
|---|
InteractiveImage(java.awt.Image image,
double x,
double y)
Constructs an interactive image centered at the given location.
|
| Modifier and Type | Method and 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) |
boolean |
isInside(DrawingPanel panel,
int xpix,
int ypix)
Determines if the shape is enabled and if the given pixel coordinates are within the image.
|
contains, createArrow, createCenteredArrow, createCircle, createEllipse, createImage, createRectangle, createSquare, createTextLine, createTriangle, getHeight, getLoader, getShape, getWidth, getXMax, getXMin, getYMax, getYMin, isMeasured, setHeight, setMarkerColor, setMeasured, setOffset, setPixelSized, setTheta, setWidth, setX, setXY, setY, toString, tranform, transformfindInteractive, getX, getY, isEnabled, setEnabledpublic InteractiveImage(java.awt.Image image,
double x,
double y)
x - doubley - doubleimage - Imagepublic boolean isInside(DrawingPanel panel, int xpix, int ypix)
isInside in class InteractiveShapepanel - DrawingPanelxpix - intypix - intpublic void draw(DrawingPanel panel, java.awt.Graphics g)
draw in interface Drawabledraw in class InteractiveShapepanel - 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