org.apache.jetspeed.portlets.layout
Class LayoutCoordinate

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

public final class LayoutCoordinate
extends Object
implements Comparable, Serializable

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

Author:
Scott T. Weaver
See Also:
Serialized Form

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

Field Detail

x

private final int x

y

private final int y
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(Object obj)
Two LayoutCoordinates are equal if thier respective x and y values are equal.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

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


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