|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.gfx.geometry.numbers.AtOffset
public final class AtOffset
A value that adds a fixed offset to the inputted ref or start if getValue(float, float) or getIntValue(float, float).
| Field Summary | |
|---|---|
static AtOffset |
OFFSET0
Same as new AtOffset(0f) but can be used to avoid creating new objects. |
| Constructor Summary | |
|---|---|
AtOffset(float off)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getIntValue(float ref)
Returns a value rounded to an int, possibly depending on the ref. |
int |
getIntValue(float start,
float end)
Returns offset rounded to an integer. |
float |
getOffset()
Returns the offset sent into the constructor. |
float |
getValue(float ref)
Returns a value, possibly depending on the ref. |
float |
getValue(float start,
float end)
Returns d |
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 AtOffset OFFSET0
new AtOffset(0f) but can be used to avoid creating new objects.
| Constructor Detail |
|---|
public AtOffset(float off)
off - The value that will be added to the ref or (start of AtRefRangeNumber methods are used)| Method Detail |
|---|
public float getValue(float ref)
AtRefNumberref.
getValue in interface AtRefNumberref - Some reference value. Might be used or disregarded depending on implementation.
public int getIntValue(float ref)
AtRefNumberint, possibly depending on the ref.
getIntValue in interface AtRefNumberref - Some reference value. Might be used or disregarded depending on implementation.
int.
public final float getValue(float start,
float end)
d
getValue in interface AtRefRangeNumberstart - Added to d.end - Not used.
d.
public final int getIntValue(float start,
float end)
offset rounded to an integer. The integer value is cached.
getIntValue in interface AtRefRangeNumberstart - Added to offset.end - Not used.
offset rounded to an 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 | ||||||||