|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.layoutmgr.Keep
public final class Keep
Object representing a keep constraint, corresponding to the XSL-FO keep properties.
| Field Summary | |
|---|---|
static Keep |
KEEP_ALWAYS
keep always |
static Keep |
KEEP_AUTO
keep auto |
| Method Summary | |
|---|---|
Keep |
compare(Keep other)
Compare this Keep instance to another one, and return the stronger one if the context is the same |
int |
getContext()
Returns the context of this keep. |
static Keep |
getKeep(KeepProperty keepProperty)
Obtain a Keep instance corresponding to the given KeepProperty |
int |
getPenalty()
|
boolean |
isAuto()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Keep KEEP_AUTO
public static final Keep KEEP_ALWAYS
| Method Detail |
|---|
public static Keep getKeep(KeepProperty keepProperty)
KeepProperty
keepProperty - the KeepProperty
public boolean isAuto()
true if the keep property was specified as "auto"public int getContext()
Constants.EN_LINE, Constants.EN_COLUMN or
Constants.EN_PAGEpublic int getPenalty()
public Keep compare(Keep other)
other - the instance to compare to
public java.lang.String toString()
toString in class java.lang.Object
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||