|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.emn.win32input.jwintab.Domain
A class representing a multi-dimensional domain. A Domain contains information about the range (i.e. logical domain) of one or several dimensions. These dimensions are the tablet dimensions defined in the TabletDevice class. This object can be used in Contexts to define mapping functions between the tablet and the application. Constructors are provided to define (X,Y) and (X,Y,Z) domains used by mapping functions. To define other domains, use setRange.
Range,
TabletContext,
TabletDevice| Constructor Summary | |
Domain()
Contructs an empty domain with no dimension. |
|
Domain(int Xmin,
int Ymin,
int Xmax,
int Ymax)
Constructs a two-dimensional domain on the dimensions X and Y. |
|
Domain(int Xmin,
int Ymin,
int Zmin,
int Xmax,
int Ymax,
int Zmax)
Constructs a three-dimensional domain on the dimensions X, Y and Z. |
|
| Method Summary | |
boolean |
containsDimension(int dimension)
Returns whether this object contains the given dimension(s). |
int |
getDimensions()
Returns a bit mask describing all the dimensions represented in this Domain. |
Range |
getRange(int dimension)
Returns the range of a given dimension. |
void |
removeDimension(int dimension)
Removes the given dimension(s) and their associated range. |
void |
setRange(int dimension,
int min,
int max)
Sets the range of a dimension. |
void |
setRange(int dimension,
Range range)
Sets the range of a dimension. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Domain()
public Domain(int Xmin,
int Ymin,
int Xmax,
int Ymax)
public Domain(int Xmin,
int Ymin,
int Zmin,
int Xmax,
int Ymax,
int Zmax)
| Method Detail |
public boolean containsDimension(int dimension)
dimension - a bit mask describing one or more dimension(s).public int getDimensions()
public Range getRange(int dimension)
dimension - a single dimension.containsDimension(int)public void removeDimension(int dimension)
dimension - a bit mask describing one or more dimension(s).
public void setRange(int dimension,
int min,
int max)
dimension - a bit mask describing one or more dimension(s).
public void setRange(int dimension,
Range range)
dimension - a bit mask describing one or more dimension(s).public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||