public class SceneFragmentDescription extends ResourceDescription
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE_SCENE |
src, vx, vyid, parentRegion, sensitive, takesTo, takesToType, zindex| Constructor and Description |
|---|
SceneFragmentDescription(String id,
double x,
double y,
URL p,
Region pr,
SceneManager sm)
Constructs the description of a scene fragment.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
coordInside(double vx,
double vy)
Will always return false in the case of a scene fragment.
|
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()
Does not return anything since this is a scene fragment.
|
String |
getType()
Type of object.
|
getFeedbackWhenFetching, getURL, getX, getY, isInJAR, isLocal, moveTo, setDefaultFeedbackWhenFetching, setFeedbackWhenFetching, setProgressBarBackgroundColor, setProgressBarColor, setProgressBarDefaultColors, setURLgetID, getParentRegion, getZindex, isSensitive, setParentRegion, setSensitive, setTakesTo, setZindex, takesTo, takesToTypepublic static final String RESOURCE_TYPE_SCENE
public SceneFragmentDescription(String id, double x, double y, URL p, Region pr, SceneManager sm)
id - ID of object in scenex - x-coordinate in sceney - y-coordinate in scenep - path to bitmap resource (any valid absolute URL)pr - 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()
getGlyph in class ObjectDescriptionpublic boolean coordInside(double vx,
double vy)
coordInside 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.