public class GlyphDescription extends ObjectDescription
| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECT_TYPE_GLYPH |
id, parentRegion, sensitive, takesTo, takesToType, zindex| Constructor and Description |
|---|
GlyphDescription(String id,
Glyph glyph,
int z,
Region pr,
boolean sensitive) |
| 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.
|
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_GLYPH
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()
ObjectDescriptiongetGlyph 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.