|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.css.RelativeLength
public class RelativeLength
A length that may be expressed as an absolute or relative value, or as an "auto" value, that is to be computed at later time, by the layout engine.
Method Summary | |
---|---|
static RelativeLength |
createAbsolute(int value)
Create an absolute value length. |
static RelativeLength |
createAuto()
Create an automatic relative length. |
static RelativeLength |
createRelative(float percentage)
Create a relative length representing a relative value. |
boolean |
equals(java.lang.Object obj)
|
int |
get(int referenceLength)
Return the evaluated value of the RelativeLength given a reference value. |
int |
hashCode()
|
boolean |
isAuto()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RelativeLength createAbsolute(int value)
value
- The value of the absolute length.
public static RelativeLength createRelative(float percentage)
percentage
- The percentage from the value this length will refer to. (e.g: 50%)
public static RelativeLength createAuto()
public int get(int referenceLength)
referenceLength
- Reference length for percentage lengths.
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean isAuto()
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |