|
fop 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.Keep
Object representing a keep constraint, corresponding to the XSL-FO keep properties.
Field Summary | |
static Keep |
KEEP_ALWAYS
|
static Keep |
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()
public int getContext()
Constants.EN_LINE
, Constants.EN_COLUMN
or
Constants.EN_PAGE
public int getPenalty()
public Keep compare(Keep other)
other
- the instance to compare to
public java.lang.String toString()
|
fop 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |