public class ClosedShapeDescription extends ObjectDescription
| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECT_TYPE_CLOSED_SHAPE |
id, parentRegion, sensitive, takesTo, takesToType, zindex| Constructor and Description |
|---|
ClosedShapeDescription(String id,
ClosedShape g,
int z,
Region pr,
boolean sensitive)
Constructs the description of a ZVTM ClosedShape.
|
| 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 actual ClosedShape instance wrapped in this ZUIST object description.
|
String |
getType()
Type of object.
|
double |
getX()
Get x-coordinate of object in virtual space.
|
double |
getY()
Get y-coordinate of object in virtual space.
|
void |
moveTo(double x,
double y) |
getID, getParentRegion, getZindex, isSensitive, setParentRegion, setSensitive, setTakesTo, setZindex, takesTo, takesToTypepublic static final String OBJECT_TYPE_CLOSED_SHAPE
public ClosedShapeDescription(String id, ClosedShape g, int z, Region pr, boolean sensitive)
id - ID of object in scene.g - any ZVTM ClosedShape instance. Must implement fr.inria.zvtm.glyphs.Translucent if fade in/out transitions are used in the parent region.z - z-index (layer). Feed 0 if you don't know.pr - parent Region in scene.sensitive - should the glyph be made sensitive to cursor events or not.public String getType()
getType 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 double getX()
ObjectDescriptiongetX in class ObjectDescriptionpublic double getY()
ObjectDescriptiongetY in class ObjectDescriptionpublic void moveTo(double x,
double y)
moveTo in class ObjectDescriptionpublic boolean coordInside(double pvx,
double pvy)
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.