From a20b446f7dcbbad9ee89ef3edf3cc9fde2e54473 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 24 May 2005 09:36:52 +0000 Subject: 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 --- src/java/org/apache/fop/layoutmgr/KnuthPenalty.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/java/org/apache/fop') 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,12 +72,20 @@ 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. */ -- cgit v1.2.3