|
fop svn-trunk | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.layoutmgr.KeepUtil
public class KeepUtil
Utility class for working with keeps.
| Constructor Summary | |
|---|---|
KeepUtil()
|
|
| Method Summary | |
|---|---|
static int |
getCombinedBlockLevelKeepStrength(KeepProperty keep)
Returns the combined block-level keep strength from a keep property. |
static int |
getKeepStrength(Property keep)
Converts a keep property into an integer value. |
static int |
getPenaltyForKeep(int keepStrength)
Returns the penalty value to be used for a certain keep strength. |
static boolean |
hasKeep(int strength)
Indicates whether a keep strength indicates a keep constraint. |
static java.lang.String |
keepStrengthToString(int keepStrength)
Returns a string representation of a keep strength value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeepUtil()
| Method Detail |
|---|
public static int getKeepStrength(Property keep)
Note: The conversion restricts the effectively available integer range by two values. Integer.MIN_VALUE is used to represent the value "auto" and Integer.MAX_VALUE is used to represebt the value "always".
keep - the keep property
public static int getCombinedBlockLevelKeepStrength(KeepProperty keep)
Note: This is a temporary method to be used until it is possible to differentiate between page and column keeps!
keep - the keep property
public static boolean hasKeep(int strength)
strength - the keep strength
public static int getPenaltyForKeep(int keepStrength)
keepStrength - the keep strength
public static java.lang.String keepStrengthToString(int keepStrength)
keepStrength - the keep strength
|
fop svn-trunk | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||