de.frag.umlplugin.classcloud
Class CellCoordinate

java.lang.Object
  extended by de.frag.umlplugin.classcloud.CellCoordinate

public class CellCoordinate
extends java.lang.Object

Simple coordinate pair in an ordered cell grid.


Constructor Summary
CellCoordinate(int x, int y)
          Creates a new coordinate.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getX()
          Gets x-coordinate.
 int getY()
          Gets y-coordinate.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellCoordinate

public CellCoordinate(int x,
                      int y)
Creates a new coordinate.

Parameters:
x - x-coordinate (0..n from left to right)
y - y-coordinate (0..n from top to bottom)
Method Detail

getX

public int getX()
Gets x-coordinate.

Returns:
x-coordinate

getY

public int getY()
Gets y-coordinate.

Returns:
y-coordinate

toString

@NotNull
public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(@Nullable
                      java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object