public class SceneFragmentDescription extends ResourceDescription
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE_SCENE |
src, vx, vy
id, 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, setURL
getID, getParentRegion, getZindex, isSensitive, setParentRegion, setSensitive, setTakesTo, setZindex, takesTo, takesToType
public 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()
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()
getGlyph
in class ObjectDescription
public boolean coordInside(double vx, double vy)
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.