eTextReader
Class DPoint

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by eTextReader.DPoint
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DPoint
extends java.awt.Point

A class to create points with a size attribute.

Version:
1.0
Author:
Josh Morse
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
private  int size
          The size of the point.
 int x
          The x coordinate.
 int y
          The y coordinate.
 
Constructor Summary
DPoint(int x, int y, int size)
          Constructs and initializes a point at the specified (xy) location in coordinate space with a size of size.
 
Method Summary
 int getSize()
          Returns the size of the point as an int.
 
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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

size

private int size
The size of the point.

See Also:
getSize()

x

public int x
The x coordinate. If no x coordinate is set it will default to 0.


y

public int y
The y coordinate. If no y coordinate is set it will default to 0.

Constructor Detail

DPoint

public DPoint(int x,
              int y,
              int size)
Constructs and initializes a point at the specified (xy) location in coordinate space with a size of size.

Parameters:
x - the x coordinate
y - the y coordinate
size - the size of the point
Method Detail

getSize

public int getSize()
Returns the size of the point as an int.

Returns:
the size of the point