diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-05-24 09:36:52 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-05-24 09:36:52 +0000 |
commit | a20b446f7dcbbad9ee89ef3edf3cc9fde2e54473 (patch) | |
tree | c4af6958e089699e51f1ea39899ca4c4bcc0b0c5 /src/java/org/apache/fop | |
parent | fba3e382230a6cd4d0fd16e16ab945526290608e (diff) | |
download | xmlgraphics-fop-a20b446f7dcbbad9ee89ef3edf3cc9fde2e54473.tar.gz xmlgraphics-fop-a20b446f7dcbbad9ee89ef3edf3cc9fde2e54473.zip |
Need the ability to modify P after creation of the instance.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/KnuthPenalty.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java b/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java index e0b528867..4ca4bf30a 100644 --- a/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java +++ b/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java @@ -72,13 +72,21 @@ public class KnuthPenalty extends KnuthElement { } /** - * Return the penalty value of this penalty. + * @return the penalty value of this penalty. */ public int getP() { return penalty; } /** + * Sets a new penalty value. + * @param p the new penalty value + */ + public void setP(int p) { + this.penalty = p; + } + + /** * Return true is this penalty is a flagged one. */ public boolean isFlagged() { |