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/09/14 15:53:24 UTC
svn commit: r280857 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CondLengthProperty.java
Author: jeremias
Date: Wed Sep 14 06:53:21 2005
New Revision: 280857
URL: http://svn.apache.org/viewcvs?rev=280857&view=rev
Log:
Style fixes.
Assimilate toString() with SpaceProperty's toString().
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CondLengthProperty.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CondLengthProperty.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CondLengthProperty.java?rev=280857&r1=280856&r2=280857&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CondLengthProperty.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CondLengthProperty.java Wed Sep 14 06:53:21 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -57,8 +57,7 @@
* @see CompoundPropertyMaker#convertProperty
*/
public Property convertProperty(Property p, PropertyList propertyList, FObj fo)
- throws PropertyException
- {
+ throws PropertyException {
if (p instanceof KeepProperty) {
return p;
}
@@ -125,17 +124,18 @@
/**
* Returns the computed length value.
+ * @param context The context for the length calculation (for percentage based lengths)
* @return the length in millipoints
*/
public int getLengthValue(PercentBaseContext context) {
return this.length.getLength().getValue(context);
}
+ /** @see java.lang.Object#toString() */
public String toString() {
- return "CondLength[" + (isDiscard() ? "discard, " : "") +
- length.getObject().toString() + "]";
+ return "CondLength[" + length.getObject().toString()
+ + ", conditionality:" + conditionality + "]";
}
-
/**
* @return this.condLength
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org