Class GridCoordinates2D

Object
Point2D
Point
GridCoordinates2D
All Implemented Interfaces:
Serializable, Cloneable, GridCoordinates, Cloneable

public class GridCoordinates2D extends Point implements GridCoordinates
Holds the set of two-dimensional grid coordinates that specifies the location of the grid point within the grid. This class extends Point for interoperability with Java2D.
Since:
2.5
Author:
Martin Desruisseaux
See Also:
  • Constructor Details

    • GridCoordinates2D

      public GridCoordinates2D()
      Creates an initially empty grid coordinates.
    • GridCoordinates2D

      public GridCoordinates2D(int x, int y)
      Creates a grid coordinates initialized to the specified values.
      Parameters:
      x - The x coordinate value.
      y - The y coordinate value.
    • GridCoordinates2D

      public GridCoordinates2D(Point coordinates)
      Creates a grid coordinates initialized to the specified point.
      Parameters:
      coordinates - The coordinate values to copy.
  • Method Details