|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.gfx.geometry.numbers.AtEnd
public final class AtEnd
A value that is relative to the end. Basically returns end + off.
| Field Summary | |
|---|---|
static AtRefRangeNumber |
END0
Static reference to a new AtEnd(0) object. |
static AtRefRangeNumber |
END1
Static reference to a new AtEnd(-1) object. |
| Constructor Summary | |
|---|---|
AtEnd(float off)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getIntValue(float start,
float end)
Returns start + off rounded to the closest int. |
float |
getOffset()
Returns the offset sent into the constructor. |
float |
getValue(float start,
float end)
Returns end + off. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AtRefRangeNumber END0
new AtEnd(0) object. Can be used freely since it's immutable.
public static final AtRefRangeNumber END1
new AtEnd(-1) object. Can be used freely since it's immutable.
| Constructor Detail |
|---|
public AtEnd(float off)
off - The value that is added to end. I.e. the distance from the end. Use negative values to go towards start.| Method Detail |
|---|
public final float getValue(float start,
float end)
end + off.
getValue in interface AtRefRangeNumberstart - Not used.end - The value added to off.
end + off
public final int getIntValue(float start,
float end)
start + off rounded to the closest int.
getIntValue in interface AtRefRangeNumberstart - Not used.end - The value added to off.
start + off rounded to the closest int.public final float getOffset()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||