|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.qd.QDPoint
Field Summary | |
static int |
kIsFixedPoint
These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in. |
static int |
kIsGXPoint
These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in. |
static int |
kIsQ3Point2D
These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in. |
static int |
kIsQTVRFloatPoint
These constants are used in the fromArray call to indicate which of the 2 formats the byte array is encoded in. |
Fields inherited from interface quicktime.jdirect.PrimitivesLib |
JDirect_MacOSX, libraryInstance |
Constructor Summary | |
QDPoint(float x,
float y)
Create a QDPoint at specified location |
|
QDPoint(int x,
int y)
Create a QDPoint at specified location |
|
QDPoint(java.awt.Point origin)
Deprecated. As of QTJava v 4.0 |
Method Summary | |
java.lang.Object |
clone()
Return a copy of the QDPoint |
QDPoint |
copy()
Returns a copy of the QDPoint with the correct return type. |
boolean |
equals(java.lang.Object obj)
Checks whether two int points are equal. |
static QDPoint |
fromArray(byte[] ptBytes,
int ptType)
Creates a QDPoint from an array of bytes that represent a FixedPoint, so the byte array must be 8bytes long at least. |
static QDPoint |
fromArray(byte[] ptBytes,
int ptType,
int offset)
Creates a QDPoint from an array of bytes that represent a FixedPoint, so the byte array must be 8bytes long at least. |
static EndianDescriptor |
getEndianDescriptorFixedPoint()
Returns the EndianDescriptor for FixedPoint point. |
static EndianDescriptor |
getEndianDescriptorQTVRFloatPoint()
Returns the EndianDescriptor for TQ3Point2D point. |
static EndianDescriptor |
getEndianDescriptorTQ3Point2D()
Returns the EndianDescriptor for TQ3Point2D point. |
byte[] |
getFixedPoint()
Returns a byte array that contains the packed value of a FixedPoint |
byte[] |
getGXPoint()
Returns a byte array that contains the packed value of a GXPoint |
int |
getPoint()
Returns the QDPoint packed into a 32bit integer |
byte[] |
getQ3Point2D()
Returns a byte array that contains the packed value of a 3Point2D |
byte[] |
getQTVRFloatPoint()
Returns a byte array that contains the packed value of a QTVRFloatPoint |
int |
getX()
Get the x location of the point. |
float |
getXF()
Get the x location of the point. |
int |
getY()
Get the y location of the point. |
float |
getYF()
Get the y location of the point. |
void |
move(float x,
float y)
Moves the point, to coordinates x, y. |
void |
move(int x,
int y)
Moves the point, to coordinates x, y. |
void |
setX(float x)
Set the x location of the point. |
void |
setX(int x)
Set the x location of the point. |
void |
setY(float y)
Set the y location of the point. |
void |
setY(int y)
Set the y location of the point. |
java.lang.String |
toString()
Returns the String representation of this QDPoint's coordinate. |
void |
translate(float deltaX,
float deltaY)
Translates the point, by deltaX and deltaY. |
void |
translate(int deltaX,
int deltaY)
Translates the point, by deltaX and deltaY. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kIsFixedPoint
public static final int kIsGXPoint
public static final int kIsQ3Point2D
public static final int kIsQTVRFloatPoint
Constructor Detail |
public QDPoint(int x, int y)
x
- x locationy
- y locationpublic QDPoint(float x, float y)
x
- x locationy
- y locationpublic QDPoint(java.awt.Point origin)
point
- location of pointMethod Detail |
public static final EndianDescriptor getEndianDescriptorFixedPoint()
public static final EndianDescriptor getEndianDescriptorTQ3Point2D()
public static final EndianDescriptor getEndianDescriptorQTVRFloatPoint()
public static QDPoint fromArray(byte[] ptBytes, int ptType)
ptBytes
- the byte array containing the packed point valuesptType
- the type of point to be found in the arrayjava.lang.IllegalArgumentException
- if mismatch between minimum length of byte array and format flagpublic static QDPoint fromArray(byte[] ptBytes, int ptType, int offset)
ptBytes
- the byte array containing the packed point valuesptType
- the type of point to be found in the arrayoffset
- the offset in the array where the point is to be foundjava.lang.IllegalArgumentException
- if mismatch between minimum length of byte array and format flagpublic int getPoint()
public byte[] getGXPoint()
public byte[] getFixedPoint()
public byte[] getQ3Point2D()
public byte[] getQTVRFloatPoint()
public int getX()
public float getXF()
public void setX(int x)
x
- the new x locationpublic void setX(float x)
x
- the new x locationpublic int getY()
public float getYF()
public void setY(int y)
y
- the new y locationpublic void setY(float y)
y
- the new y locationpublic void translate(int deltaX, int deltaY)
public void translate(float deltaX, float deltaY)
public void move(int x, int y)
public void move(float x, float y)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
public QDPoint copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |