|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.util.Spatial
public final class Spatial
Represents a location, and a size (magnitude).
In general, the Spatial
class is intended to track the
size and position of windows in space. Hence the term.
NOTE: This is an immutable object
Constructor Summary | |
---|---|
Spatial(int top,
int left,
int width,
int height)
Create a new Spatial object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getHeight()
Get the height of the spatial object |
int |
getLeft()
Get the distance from the left of the space for the spatial object |
int |
getTop()
Get the distance from the top of the space for the spatial object |
int |
getWidth()
Get the width of the spatial object |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Spatial(int top, int left, int width, int height)
top
- @see topleft
- @see leftwidth
- @see widthheight
- @see heightMethod Detail |
---|
public int getHeight()
public int getLeft()
public int getTop()
public int getWidth()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |