|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.gfx.geometry.numbers.AtFixed
public final class AtFixed
A value that is fixed to value no matter what the inputted for start and end.
| Field Summary | |
|---|---|
static AtRefNumber |
FIXED0
Static reference to a new AtFixed(0) object. |
static AtRefNumber |
FIXED1
Static reference to a new AtFixed(1) object. |
| Constructor Summary | |
|---|---|
AtFixed(float value)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getIntValue()
Returns a size without a reference size, rounded to an int. |
int |
getIntValue(float refSize)
Returns a value rounded to an int, possibly depending on the ref. |
int |
getIntValue(float start,
float end)
Returns the value as an int. |
float |
getValue()
Returns a size without a reference size. |
float |
getValue(float refSize)
Returns a value, possibly depending on the ref. |
float |
getValue(float start,
float end)
Returns the value. |
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 AtRefNumber FIXED0
new AtFixed(0) object. Can be used freely since it's immutable.
public static final AtRefNumber FIXED1
new AtFixed(1) object. Can be used freely since it's immutable.
| Constructor Detail |
|---|
public AtFixed(float value)
value - The value that will always be returned.| Method Detail |
|---|
public final float getValue()
AtNumber
getValue in interface AtNumberpublic final int getIntValue()
AtNumberint.
getIntValue in interface AtNumberint.public final float getValue(float refSize)
AtRefNumberref.
getValue in interface AtRefNumberrefSize - Some reference value. Might be used or disregarded depending on implementation.
public final int getIntValue(float refSize)
AtRefNumberint, possibly depending on the ref.
getIntValue in interface AtRefNumberrefSize - Some reference value. Might be used or disregarded depending on implementation.
int.
public final float getValue(float start,
float end)
AtRefRangeNumber
getValue in interface AtRefRangeNumberstart - The start value.end - The end value.
public final int getIntValue(float start,
float end)
AtRefRangeNumber
getIntValue in interface AtRefRangeNumberstart - The start value.end - The end value.
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 | ||||||||