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, takesToType
public static final String OBJECT_TYPE_GLYPH
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()
ObjectDescription
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.