|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vgrs.xcode.common.UnicodeMatrix
public class UnicodeMatrix
Implements a single Unicode Plane as a matrix of boolean flags 8K in size.
| Constructor Summary | |
|---|---|
UnicodeMatrix(int aPlane)
Construct a UnicodeMatrix to store 65,535 flags |
|
| Method Summary | |
|---|---|
void |
insert(int aCodePoint)
Store an integer in the UnicodeMatrix |
void |
insert(int[] aRange)
Store a range in the UnicodeMatrix |
void |
insert(int aFirst,
int aLast)
Store a range in the UnicodeMatrix |
void |
insert(Range aRange)
Store a range in the UnicodeMatrix |
boolean |
spans(int[] aRange)
Return true if the given range fits completely inside the matrix. |
boolean |
spans(int aFirst,
int aLast)
Return true if the given range fits completely inside the matrix. |
boolean |
spans(Range aRange)
Return true if the given range fits completely inside the matrix. |
boolean |
test(int aInput)
Test for intersection between a single integer and the UnicodeMatrix |
java.lang.String |
toString()
Display the matrix data to standard output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnicodeMatrix(int aPlane)
aPlane - A number on the range [0-16] indicating the active plane.| Method Detail |
|---|
public void insert(int[] aRange)
aRange - An integer array of length two. The first element is the lower bound
and the second element is the upper bound.public void insert(Range aRange)
aRange - A Range object.
public void insert(int aFirst,
int aLast)
aFirst - The lower bound (inclusive)aLast - The upper bound (inclusive)public void insert(int aCodePoint)
aCodePoint - An integer to be inserted in matrixpublic boolean spans(int[] aRange)
aRange - An integer array of length two. The first element is the lower bound
and the second element is the upper bound.public boolean spans(Range aRange)
aRange - A Range object.
public boolean spans(int aFirst,
int aLast)
aFirst - The lower bound (inclusive)aLast - The upper bound (inclusive)public boolean test(int aInput)
aInput - An integerpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||