|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.gfx.geometry.links.BoundsLinkNumber
public abstract class BoundsLinkNumber
A link to a number relative to the bounds.
Subclasses should just implements the two abstract methods and return the appropriate value.
| Field Summary | |
|---|---|
protected AtRefRangeNumber |
align
The value used to get a return value in one dimension. |
protected int |
dim
X ot Y |
static int |
X
|
static int |
Y
|
| Constructor Summary | |
|---|---|
protected |
BoundsLinkNumber(AtRefRangeNumber align,
int dim)
Constructor for a relative (percentage) value. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
AtRefRangeNumber |
getAlign()
Returns the value that this link represents. |
int |
getDimension()
Returns if x or y are the main dimension to use. |
protected abstract float |
getHorizontalValue(AtRefRangeNumber align)
Uses the horizontal start and end value to get the value. |
int |
getIntValue()
Returns a size without a reference size, rounded to an int. |
int |
getIntValue(float ref)
Just calls get getIntValue() |
int |
getIntValue(float start,
float end)
Just calls get getIntValue() |
float |
getValue()
Returns a size without a reference size. |
float |
getValue(float ref)
Just calls get getValue() |
float |
getValue(float start,
float end)
Just calls get getValue() |
protected abstract float |
getVerticalValue(AtRefRangeNumber align)
Uses the vertival start and end value to get 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 int X
public static final int Y
protected final transient AtRefRangeNumber align
protected final transient int dim
| Constructor Detail |
|---|
protected BoundsLinkNumber(AtRefRangeNumber align,
int dim)
align - If the value that this link represents. Can be relative to the left, right or both bounds edges of the shape.
The start and end position in dim will be ussed to get the value.dim - The dimension. ShapeLinkNumber.X or ShapeLinkNumber.Y.| Method Detail |
|---|
protected abstract float getHorizontalValue(AtRefRangeNumber align)
align - The value to call AtRefRangeNumber.getValue(float, float) on.
getValue returns.protected abstract float getVerticalValue(AtRefRangeNumber align)
align - The value to call AtRefRangeNumber.getValue(float, float) on.
getValue returns.public final float getValue()
AtNumber
getValue in interface AtNumberpublic final float getValue(float ref)
getValue()
getValue in interface AtRefNumberref - Some reference value. Might be used or disregarded depending on implementation.
public final float getValue(float start,
float end)
getValue()
getValue in interface AtRefRangeNumberstart - The start value.end - The end value.
public final int getIntValue()
AtNumberint.
getIntValue in interface AtNumberint.public final int getIntValue(float ref)
getIntValue()
getIntValue in interface AtRefNumberref - Some reference value. Might be used or disregarded depending on implementation.
int.
public final int getIntValue(float start,
float end)
getIntValue()
getIntValue in interface AtRefRangeNumberstart - The start value.end - The end value.
public AtRefRangeNumber getAlign()
public int getDimension()
ShapeLinkNumber.X or ShapeLinkNumber.Y.
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 | ||||||||