public abstract class ObjectDescription extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
id |
protected Region |
parentRegion |
protected boolean |
sensitive |
protected String |
takesTo |
protected short |
takesToType |
protected int |
zindex |
Constructor and Description |
---|
ObjectDescription(String id,
int z,
Region pr,
boolean sensitive) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
coordInside(double pvx,
double pvy)
Are the supplied coordinates inside the object described.
|
abstract void |
createObject(SceneManager sm,
VirtualSpace vs,
boolean fadeIn)
Called automatically by scene manager.
|
abstract void |
destroyObject(SceneManager sm,
VirtualSpace vs,
boolean fadeOut)
Called automatically by scene manager.
|
abstract Glyph |
getGlyph()
Get Glyph described by this description.
|
String |
getID()
Get this object description's ID.
|
Region |
getParentRegion()
Get Region this object belongs to.
|
abstract String |
getType()
Type of object.
|
abstract double |
getX()
Get x-coordinate of object in virtual space.
|
abstract double |
getY()
Get y-coordinate of object in virtual space.
|
int |
getZindex()
Get z-index for this object.
|
boolean |
isSensitive()
Is the object sensitive to cursor entry/exit.
|
abstract void |
moveTo(double x,
double y) |
protected void |
setParentRegion(Region pr) |
void |
setSensitive(boolean b)
Should the object be sensitive to cursor entry/exit.
|
void |
setTakesTo(String id,
short t)
Should take/"transport" to object/region whose ID is id
|
protected void |
setZindex(int i) |
String |
takesTo()
Get the ID of object where this one takes/"transports" to.
|
short |
takesToType() |
protected String id
protected int zindex
protected boolean sensitive
protected Region parentRegion
protected String takesTo
protected short takesToType
public abstract String getType()
public abstract void createObject(SceneManager sm, VirtualSpace vs, boolean fadeIn)
public abstract void destroyObject(SceneManager sm, VirtualSpace vs, boolean fadeOut)
public void setSensitive(boolean b)
public boolean isSensitive()
public abstract Glyph getGlyph()
public int getZindex()
protected void setZindex(int i)
public Region getParentRegion()
protected void setParentRegion(Region pr)
public void setTakesTo(String id, short t)
id
- set to null if should not take anywherepublic String takesTo()
public short takesToType()
public String getID()
public abstract double getX()
public abstract double getY()
public abstract void moveTo(double x, double y)
public abstract boolean coordInside(double pvx, double pvy)
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.