public class Region extends Object
Modifier and Type | Field and Description |
---|---|
static short |
APPEAR
Objects appear immediately (no animated transition).
|
static String |
APPEAR_STR
Objects disappear immediately (no animated transition), keyword in ZUIST XML vocabulary.
|
static short |
DISAPPEAR
Objects disappear immediately (no animated transition).
|
static String |
DISAPPEAR_STR
Objects disappear immediately (no animated transition), keyword in ZUIST XML vocabulary.
|
static short |
FADE_IN
Objects appear gradually (animated fade-in transition).
|
static String |
FADE_IN_STR
Objects appear gradually (animated fade-in transition), keyword in ZUIST XML vocabulary.
|
static short |
FADE_OUT
Objects disappear gradually (animated fade-out transition).
|
static String |
FADE_OUT_STR
Objects disappear gradually (animated fade-out transition), keyword in ZUIST XML vocabulary..
|
static short |
ORDERING_ARRAY |
static String |
ORDERING_ARRAY_STR |
static short |
ORDERING_DISTANCE |
static String |
ORDERING_DISTANCE_STR |
static short |
TASL
Entering/leaving region: already in level range (transition at same level).
|
static short |
TFLL
Entering region: approaching from lower level.
|
static short |
TFUL
Entering region: approaching from upper level.
|
static short |
TTLL
Leaving region: going to lower level.
|
static short |
TTUL
Leaving region: going to upper level.
|
Modifier and Type | Method and Description |
---|---|
void |
addContainedRegion(Region r) |
void |
addObject(ObjectDescription od) |
void |
addTag(String tag) |
boolean |
coordInside(double vx,
double vy) |
Region |
getContainingRegion()
Get containing region, if any has been declared.
|
Vector<Region> |
getContainingRegions(Vector<Region> cr)
Get containing regions recursively, if any have been declared.
|
double |
getHeight()
Get this region's height.
|
int |
getHighestLevel()
Get index of highest and lowest levels this region belongs to.
|
String |
getID()
Get Region ID.
|
int |
getLowestLevel()
Get index of highest and lowest levels this region belongs to.
|
ObjectDescription[] |
getObjectsInRegion()
Get objects in this region.
|
String[] |
getTags() |
String |
getTitle()
Get Region title.
|
double |
getWidth()
Get this region's width.
|
double |
getX()
Get this region's center x-coordinate.
|
double |
getY()
Get this region's center y-coordinate.
|
boolean |
hasTag(String tag) |
void |
moveTo(double x,
double y)
Set this region's center (x,y)-coordinates.
|
void |
removeTag(String tag) |
void |
setContainingRegion(Region r) |
static void |
setDefaultTransitions(short from,
short to) |
void |
setGeometry(double x,
double y,
double w,
double h)
Set this region's center (x,y)-coordinates, width and height.
|
void |
setHeight(double h)
Set this region's height.
|
void |
setTitle(String t)
Set Region title.
|
void |
setWidth(double w)
Set this region's width.
|
String |
toString() |
public static final short FADE_IN
public static final short FADE_OUT
public static final short APPEAR
public static final short DISAPPEAR
public static final String FADE_IN_STR
public static final String FADE_OUT_STR
public static final String APPEAR_STR
public static final String DISAPPEAR_STR
public static final short TFUL
public static final short TFLL
public static final short TTUL
public static final short TTLL
public static final short TASL
public static final short ORDERING_ARRAY
public static final short ORDERING_DISTANCE
public static final String ORDERING_ARRAY_STR
public static final String ORDERING_DISTANCE_STR
public static void setDefaultTransitions(short from, short to)
public String getID()
public boolean hasTag(String tag)
public void addTag(String tag)
public void removeTag(String tag)
public String[] getTags()
public void setTitle(String t)
public String getTitle()
public int getHighestLevel()
public int getLowestLevel()
public Region getContainingRegion()
public Vector<Region> getContainingRegions(Vector<Region> cr)
cr
- an initially empty Vector that will be recursively populated with containing regions up to the root.public ObjectDescription[] getObjectsInRegion()
public double getX()
public double getY()
public double getWidth()
public double getHeight()
public void moveTo(double x, double y)
public void setWidth(double w)
public void setHeight(double h)
public void setGeometry(double x, double y, double w, double h)
public void addObject(ObjectDescription od)
public void setContainingRegion(Region r)
public void addContainedRegion(Region r)
public boolean coordInside(double vx, double vy)
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.