as.clynx.interfaces
Class Position2D

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by as.clynx.interfaces.Position2D
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Position2D
extends java.awt.Point

The class Position2D.java is part of the connection to extern applications. it specifies the distance to a centerpoint (0/0) and its linear distance.

Version:
cLynx v.1.2, JDK 6.0: 23.10.2007
Author:
Andreas Senfter - andreas@senfters.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 float distance
           
 
Fields inherited from class java.awt.Point
x, y
 
Constructor Summary
Position2D(int x, int y)
          Constructor
 
Method Summary
 void setUnitCenter(java.awt.Point center, int radius)
          sets the center of the unit. if center is not (0/0) the coordinate system is shiftet in that way that center becomes (0/0).
 
Methods inherited from class java.awt.Point
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

distance

public float distance
Constructor Detail

Position2D

public Position2D(int x,
                  int y)
Constructor

Parameters:
x -
y -
Method Detail

setUnitCenter

public void setUnitCenter(java.awt.Point center,
                          int radius)
sets the center of the unit. if center is not (0/0) the coordinate system is shiftet in that way that center becomes (0/0).

Parameters:
center -
radius -