|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.whatswrong.Bounds1D
public class Bounds1D
This class represents one dimensional bounds.
| Field Summary | |
|---|---|
int |
from
Where do the bounds start |
int |
to
Where do the bounds end. |
| Constructor Summary | |
|---|---|
Bounds1D(int from,
int to)
Create a new Bounds1D object for the given bounds. |
|
| Method Summary | |
|---|---|
int |
getMiddle()
Get middle of the bounds. |
int |
getWidth()
Return the total width of the bounds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int from
public final int to
| Constructor Detail |
|---|
public Bounds1D(int from,
int to)
from - where do the bounds start.to - where do the bounds end.| Method Detail |
|---|
public int getWidth()
public int getMiddle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||