cynosurex.awt
Class Location

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by cynosurex.awt.Location
All Implemented Interfaces:
cynosurex.internal.AuthorCommon, cynosurex.internal.CommonInterface, cynosurex.internal.CompanyCommon, java.io.Serializable, java.lang.Cloneable

public class Location
extends java.awt.Point
implements cynosurex.internal.CommonInterface

A location representing a location in (x, y) coordinate space. The coordinate is automatically calculated to be a point within the screen coordination space based on the dimension of the object.

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
static int CENTER
           
 
Fields inherited from class java.awt.Point
x, y
 
Fields inherited from interface cynosurex.internal.CommonInterface
copyright, copyrightYears, notice, program, version
 
Fields inherited from interface cynosurex.internal.AuthorCommon
author, copyrightSymbol, noticeMsg, rights
 
Fields inherited from interface cynosurex.internal.CompanyCommon
company, email, website
 
Constructor Summary
Location(java.awt.Dimension size)
          Constructor.
Location(java.awt.Point location, java.awt.Dimension size)
          Constructor.
 
Method Summary
 
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

CENTER

public static int CENTER
Constructor Detail

Location

public Location(java.awt.Dimension size)
Constructor. Creates a centered location based on the dimension of the object.


Location

public Location(java.awt.Point location,
                java.awt.Dimension size)
Constructor. Creates a location based on the dimension of the object and where you want the upper-left hand corner of the object to be on the screen. It will automatically move the object into the screen if any portion is outside the screen.