JNative project : see http://jnative.sf.net


org.xvolks.jnative.misc
Class Point

java.lang.Object
  extended by org.xvolks.jnative.misc.basicStructures.AbstractBasicData<Point>
      extended by org.xvolks.jnative.misc.Point
All Implemented Interfaces:
BasicData<Point>

public class Point
extends AbstractBasicData<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

x

protected int x

y

protected int y
Constructor Detail

Point

public Point()
      throws NativeException
Throws:
NativeException

Point

public Point(int x,
             int y)
      throws NativeException
Throws:
NativeException
Method Detail

createPointer

public Pointer createPointer()
                      throws NativeException
Method createPointer reserves a native MemoryBlock and copy its value in it

Returns:
a Pointer on the reserved memory
Throws:
NativeException

getValueFromPointer

public Point getValueFromPointer()
                          throws NativeException
Method getValueFromPointer

Returns:
a T
Throws:
NativeException

getX

public int getX()
Returns X

Returns:
an int

getY

public int getY()
Returns Y

Returns:
an int

getValue

public Point getValue()
Method getValue

Specified by:
getValue in interface BasicData<Point>
Overrides:
getValue in class AbstractBasicData<Point>
Returns:
a T

getSizeOf

public int getSizeOf()
Method getSizeOf

Returns:
the size of this data

sizeOf

public static int sizeOf()

JNative project : see http://jnative.sf.net