com.jniwrapper.win32
Class Point

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by com.jniwrapper.win32.Point
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class Point
extends com.jniwrapper.Structure

This class represents POINT structure.


Field Summary
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
Point()
          Constructs a point with zero x- and y-coordinates.
Point(long x, long y)
          Constructs a new point with the given x and y values.
Point(Point that)
          Constructs a new point with the same coordinates as in the passed one.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
          Compares two points.
 long getX()
           
 long getY()
           
 int hashCode()
           
 void setX(long x)
           
 void setY(long y)
           
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point()
Constructs a point with zero x- and y-coordinates.


Point

public Point(long x,
             long y)
Constructs a new point with the given x and y values.


Point

public Point(Point that)
Constructs a new point with the same coordinates as in the passed one.

Parameters:
that - a point to copy the coordinates from.
Method Detail

getX

public long getX()

setX

public void setX(long x)

getY

public long getY()

setY

public void setY(long y)

clone

public java.lang.Object clone()
Overrides:
clone in class com.jniwrapper.Structure

equals

public boolean equals(java.lang.Object o)
Compares two points. Two points are equal if corresponding x- and y-coordinates are equal.

Overrides:
equals in class com.jniwrapper.Structure
Parameters:
o - another instance of Point.
Returns:
true, if points represent the same coordinates on the screen; false if otherwise.

hashCode

public int hashCode()
Overrides:
hashCode in class com.jniwrapper.Parameter