public class ImageDescription extends ResourceDescription
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE_IMG |
src, vx, vyid, parentRegion, sensitive, takesTo, takesToType, zindex| Constructor and Description |
|---|
ImageDescription(String id,
double x,
double y,
int z,
double w,
double h,
URL p,
Color sc,
float alpha,
Object im,
Region pr)
Constructs the description of an image (VImageST).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
coordInside(double pvx,
double pvy)
Are the supplied coordinates inside the object described.
|
void |
createObject(SceneManager sm,
VirtualSpace vs,
boolean fadeIn)
Called automatically by scene manager.
|
void |
destroyObject(SceneManager sm,
VirtualSpace vs,
boolean fadeOut)
Called automatically by scene manager.
|
Glyph |
getGlyph()
Get Glyph described by this description.
|
float |
getTranslucencyValue() |
String |
getType()
Type of object.
|
void |
moveTo(double x,
double y) |
getFeedbackWhenFetching, getURL, getX, getY, isInJAR, isLocal, setDefaultFeedbackWhenFetching, setFeedbackWhenFetching, setProgressBarBackgroundColor, setProgressBarColor, setProgressBarDefaultColors, setURLgetID, getParentRegion, getZindex, isSensitive, setParentRegion, setSensitive, setTakesTo, setZindex, takesTo, takesToTypepublic static final String RESOURCE_TYPE_IMG
public ImageDescription(String id, double x, double y, int z, double w, double h, URL p, Color sc, float alpha, Object im, Region pr)
id - ID of object in scenex - x-coordinate in sceney - y-coordinate in scenez - z-index (layer). Feed 0 if you don't know.w - width in sceneh - height in scenep - path to bitmap resource (any valid absolute URL)sc - border coloralpha - in [0;1.0]. 0 is fully transparent, 1 is opaqueim - one of java.awt.RenderingHints.{VALUE_INTERPOLATION_NEAREST_NEIGHBOR,VALUE_INTERPOLATION_BILINEAR,VALUE_INTERPOLATION_BICUBIC} ; default is VALUE_INTERPOLATION_NEAREST_NEIGHBORpr - parent Region in scenepublic String getType()
ObjectDescriptiongetType in class ObjectDescriptionpublic void createObject(SceneManager sm, VirtualSpace vs, boolean fadeIn)
ObjectDescriptioncreateObject in class ObjectDescriptionpublic void destroyObject(SceneManager sm, VirtualSpace vs, boolean fadeOut)
ObjectDescriptiondestroyObject in class ObjectDescriptionpublic Glyph getGlyph()
ObjectDescriptiongetGlyph in class ObjectDescriptionpublic void moveTo(double x,
double y)
moveTo in class ResourceDescriptionpublic float getTranslucencyValue()
public boolean coordInside(double pvx,
double pvy)
ObjectDescriptioncoordInside in class ObjectDescriptionCopyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.