|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl | +--edu.berkeley.guir.lib.satin.objects.GObImage
A GraphicalObject holding an image.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Jun 20 1999, JH Created class - SATIN-v2.1-1.0.0, Aug 11 2000, JH Touched for SATIN release - SATIN-v2.1-1.1.0, Nov 10 2000, JH Fixed image loading race conditions. Added optional borders to the image.
Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants |
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Fields inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject |
GESTUREINTRP_CLPROPERTY, INKINTRP_CLPROPERTY, STYLE_CLPROPERTY, VIEW_CLPROPERTY |
Constructor Summary | |
protected |
GObImage()
Create an empty image GraphicalObject. |
|
GObImage(Image img)
Create a GraphicalObject around the image specified. |
|
GObImage(String strFileName)
Create a GraphicalObject of the image given the specified filename. |
|
GObImage(URL url)
Create a GraphicalObject of the image given the specified url. |
Method Summary | |
Object |
clone()
My clone sleeps alone... |
GObImage |
clone(GObImage gobClone)
|
Object |
deepClone()
If you do not override this method, it calls clone() by default. |
GObImage |
deepClone(GObImage gobClone)
|
protected void |
defaultRender(SatinGraphics g)
The default method for rendering. |
boolean |
getDrawBorder()
|
boolean |
imageUpdate(Image img,
int infoFlags,
int x,
int y,
int width,
int height)
Updated info on the friendly image file we contain. |
void |
setDrawBorder(boolean flag)
Set whether a border should be drawn around this iamge. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected GObImage()
public GObImage(Image img)
img
- is a reference to the Image object to display.public GObImage(String strFileName)
strFileName
- is the name of the image file to load.
It can load up whatever files Java can, so as of
JDK1.3 this includes GIF, JPG, and PNG.public GObImage(URL url)
url
- is the URL object to load up.
It can load up whatever files Java can, so as of JDK1.3
this includes GIF, JPG, and PNG.Method Detail |
public boolean imageUpdate(Image img, int infoFlags, int x, int y, int width, int height)
imageUpdate
in interface ImageObserver
public void setDrawBorder(boolean flag)
public boolean getDrawBorder()
protected void defaultRender(SatinGraphics g)
GraphicalObjectImpl
defaultRender
in class GraphicalObjectImpl
public Object clone()
GraphicalObjectImpl
clone
in class GraphicalObjectImpl
public GObImage clone(GObImage gobClone)
public Object deepClone()
GraphicalObjectImpl
deepClone
in class GraphicalObjectImpl
public GObImage deepClone(GObImage gobClone)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |