You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/05/24 11:36:52 UTC
cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr KnuthPenalty.java
jeremias 2005/05/24 02:36:52
Modified: src/java/org/apache/fop/layoutmgr KnuthPenalty.java
Log:
Need the ability to modify P after creation of the instance.
Revision Changes Path
1.6 +10 -2 xml-fop/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java
Index: KnuthPenalty.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- KnuthPenalty.java 13 May 2005 19:16:51 -0000 1.5
+++ KnuthPenalty.java 24 May 2005 09:36:52 -0000 1.6
@@ -72,13 +72,21 @@
}
/**
- * 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() {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org