public class ImageDescription extends ResourceDescription
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE_IMG |
src, vx, vy
id, 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, setURL
getID, getParentRegion, getZindex, isSensitive, setParentRegion, setSensitive, setTakesTo, setZindex, takesTo, takesToType
public 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()
ObjectDescription
getType
in class ObjectDescription
public void createObject(SceneManager sm, VirtualSpace vs, boolean fadeIn)
ObjectDescription
createObject
in class ObjectDescription
public void destroyObject(SceneManager sm, VirtualSpace vs, boolean fadeOut)
ObjectDescription
destroyObject
in class ObjectDescription
public Glyph getGlyph()
ObjectDescription
getGlyph
in class ObjectDescription
public void moveTo(double x, double y)
moveTo
in class ResourceDescription
public float getTranslucencyValue()
public boolean coordInside(double pvx, double pvy)
ObjectDescription
coordInside
in class ObjectDescription
Copyright © 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.