]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Need the ability to modify P after creation of the instance.
authorJeremias Maerki <jeremias@apache.org>
Tue, 24 May 2005 09:36:52 +0000 (09:36 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 24 May 2005 09:36:52 +0000 (09:36 +0000)
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

index e0b528867685212683b53a1b540697c0ec8807db..4ca4bf30a05d029a1bfa837d15a1d27a649e2239 100644 (file)
@@ -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.
      */