|
Oxygen XML Editor 11.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.
Method Summary | |
---|---|
static RelativeLength |
createAbsolute(int value)
Create an absolute value length. |
static RelativeLength |
createRelative(float percentage)
Create a relative length representing a relative value. |
boolean |
equals(Object obj)
|
int |
get(int referenceLength)
Return the evaluated value of the RelativeLength given a reference value. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, 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 int get(int referenceLength)
referenceLength
- Reference length for percentage lengths.
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |