jeremias    2005/01/17 02:30:16

  Modified:    src/java/org/apache/fop/area Trait.java
  Log:
  New traits: space-before, space-after, is-viewport-area, is-reference-area
  
  Revision  Changes    Path
  1.7       +20 -1     xml-fop/src/java/org/apache/fop/area/Trait.java
  
  Index: Trait.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Trait.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Trait.java        12 Jan 2005 11:47:45 -0000      1.6
  +++ Trait.java        17 Jan 2005 10:30:16 -0000      1.7
  @@ -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.
  @@ -169,6 +169,17 @@
        */
       public static final Integer END_INDENT  = new Integer(28);
   
  +    /** The space-before trait. */
  +    public static final Integer SPACE_BEFORE  = new Integer(29);
  +    
  +    /** The space-after trait. */
  +    public static final Integer SPACE_AFTER  = new Integer(30);
  +    
  +    /** The is-reference-area trait. */
  +    public static final Integer IS_REFERENCE_AREA = new Integer(31);
  +    
  +    /** The is-viewport-area trait. */
  +    public static final Integer IS_VIEWPORT_AREA = new Integer(32);
       
       
       private static final Map TRAIT_INFO = new HashMap();
  @@ -242,6 +253,14 @@
                   new TraitInfo("start-indent", Integer.class));
           TRAIT_INFO.put(END_INDENT,
                   new TraitInfo("end-indent", Integer.class));
  +        TRAIT_INFO.put(SPACE_BEFORE,
  +                new TraitInfo("space-before", Integer.class));
  +        TRAIT_INFO.put(SPACE_AFTER,
  +                new TraitInfo("space-after", Integer.class));
  +        TRAIT_INFO.put(IS_REFERENCE_AREA,
  +                new TraitInfo("is-reference-area", Boolean.class));
  +        TRAIT_INFO.put(IS_VIEWPORT_AREA,
  +                new TraitInfo("is-viewport-area", Boolean.class));
       }
   
       /**
  
  
  

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

Reply via email to