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 pb...@apache.org on 2002/11/29 17:44:07 UTC

cvs commit: xml-fop/src/org/apache/fop/fo/properties LineHeight.java

pbwest      2002/11/29 08:44:07

  Modified:    src/org/apache/fop/fo/properties Tag: FOP_0-20-0_Alt-Design
                        LineHeight.java
  Log:
  Added getEnumIndex() and getEnumText().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +10 -0     xml-fop/src/org/apache/fop/fo/properties/Attic/LineHeight.java
  
  Index: LineHeight.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/properties/Attic/LineHeight.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- LineHeight.java	12 Nov 2002 01:36:52 -0000	1.1.2.4
  +++ LineHeight.java	29 Nov 2002 16:44:06 -0000	1.1.2.5
  @@ -21,6 +21,16 @@
           ,"normal"
       };
   
  +    public int getEnumIndex(String enum) throws PropertyException {
  +        if (enum.equals("normal")) return 1;
  +        throw new PropertyException("Invalid enumeration: " + enum);
  +    }
  +
  +    public String getEnumText(int index) throws PropertyException {
  +        if (index == 1) return "normal";
  +        throw new PropertyException("Invalid enum index: " + index);
  +    }
  +
       public Numeric getMappedLength(FONode node, int enum)
           throws PropertyException
       {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org