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, takesToType
public 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 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 double getX()
ObjectDescription
getX
in class ObjectDescription
public double getY()
ObjectDescription
getY
in class ObjectDescription
public void moveTo(double x, double y)
moveTo
in class ObjectDescription
public boolean coordInside(double pvx, double pvy)
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.