jeremias    2005/03/11 05:28:09

  Modified:    src/java/org/apache/fop/fo/properties SpaceProperty.java
  Log:
  Convenience method to access conditionality component.
  
  Revision  Changes    Path
  1.4       +10 -1     
xml-fop/src/java/org/apache/fop/fo/properties/SpaceProperty.java
  
  Index: SpaceProperty.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/SpaceProperty.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SpaceProperty.java        28 Oct 2004 10:00:24 -0000      1.3
  +++ SpaceProperty.java        11 Mar 2005 13:28:08 -0000      1.4
  @@ -18,6 +18,7 @@
   
   package org.apache.fop.fo.properties;
   
  +import org.apache.fop.fo.Constants;
   import org.apache.fop.fo.FObj;
   import org.apache.fop.fo.PropertyList;
   import org.apache.fop.fo.expr.PropertyException;
  @@ -126,6 +127,14 @@
           return this.conditionality;
       }
   
  +    /**
  +     * Indicates if the length can be discarded on certain conditions.
  +     * @return true if the length can be discarded.
  +     */
  +    public boolean isDiscard() {
  +        return this.conditionality.getEnum() == Constants.EN_DISCARD;
  +    }
  +
       public String toString() {
           return "Space[" +
           "min:" + getMinimum().getObject() + 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to