org.apache.jetspeed.portlets.layout
Class LayoutCoordinate
java.lang.Object
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
|
x
private final int x
y
private final int y
LayoutCoordinate
public LayoutCoordinate(int x,
int y)
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.