|
JNative project : see http://jnative.sf.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xvolks.jnative.misc.basicStructures.AbstractBasicData<Point>
org.xvolks.jnative.misc.Point
public class Point
$Id: Point.java,v 1.2 2006/01/12 21:35:45 mdenty Exp $
Structure C typedef struct tagPOINT { LONG x; LONG y; } POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT;This software is released under the GPL.
Field Summary | |
---|---|
protected int |
x
|
protected int |
y
|
Fields inherited from class org.xvolks.jnative.misc.basicStructures.AbstractBasicData |
---|
mValue, offset, pointer |
Constructor Summary | |
---|---|
Point()
|
|
Point(int x,
int y)
|
Method Summary | |
---|---|
Pointer |
createPointer()
Method createPointer reserves a native MemoryBlock and copy its value in it |
int |
getSizeOf()
Method getSizeOf |
Point |
getValue()
Method getValue |
Point |
getValueFromPointer()
Method getValueFromPointer |
int |
getX()
Returns X |
int |
getY()
Returns Y |
static int |
sizeOf()
|
Methods inherited from class org.xvolks.jnative.misc.basicStructures.AbstractBasicData |
---|
getNextByte, getNextInt, getNextLong, getNextShort, getPointer, getValueAsString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int x
protected int y
Constructor Detail |
---|
public Point() throws NativeException
NativeException
public Point(int x, int y) throws NativeException
NativeException
Method Detail |
---|
public Pointer createPointer() throws NativeException
NativeException
public Point getValueFromPointer() throws NativeException
NativeException
public int getX()
public int getY()
public Point getValue()
getValue
in interface BasicData<Point>
getValue
in class AbstractBasicData<Point>
public int getSizeOf()
public static int sizeOf()
|
JNative project : see http://jnative.sf.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |