org.apache.jetspeed.portlets.layout
Class LayoutCoordinate

java.lang.Object
  extended by org.apache.jetspeed.portlets.layout.LayoutCoordinate
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class LayoutCoordinate
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Simple class that holds an x,y (column,row) coordinate.

Author:
Scott T. Weaver
See Also:
Serialized Form

Constructor Summary
LayoutCoordinate(int x, int y)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
          Two LayoutCoordinates are equal if thier respective x and y values are equal.
 int getX()
           
 int getY()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutCoordinate

public LayoutCoordinate(int x,
                        int y)
Method Detail

getX

public int getX()
Returns:
the x axis (column) value of this coordinate.

getY

public int getY()
Returns:
the y axis (row) value of this coordinate.

equals

public boolean equals(java.lang.Object obj)
Two LayoutCoordinates are equal if thier respective x and y values are equal.

Overrides:
equals in class java.lang.Object

hashCode

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

toString

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

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.