org.apache.batik.util
Class UnitProcessor.UnitResolver

java.lang.Object
  |
  +--org.apache.batik.util.UnitProcessor.UnitResolver
All Implemented Interfaces:
LengthHandler
Enclosing class:
UnitProcessor

public static class UnitProcessor.UnitResolver
extends java.lang.Object
implements LengthHandler

A LengthHandler that convert units.


Field Summary
 short unit
          The length type.
 float value
          The length value.
 
Constructor Summary
UnitProcessor.UnitResolver()
           
 
Method Summary
 void cm()
          Implements LengthHandler.cm().
 void em()
          Implements LengthHandler.em().
 void endLength()
          Implements LengthHandler.endLength().
 void ex()
          Implements LengthHandler.ex().
 void in()
          Implements LengthHandler.in().
 void lengthValue(float v)
          Implements LengthHandler.lengthValue(float).
 void mm()
          Implements LengthHandler.mm().
 void pc()
          Implements LengthHandler.pc().
 void percentage()
          Implements LengthHandler.percentage().
 void pt()
          Implements LengthHandler.pt().
 void px()
          Implements LengthHandler.px().
 void startLength()
          Implements LengthHandler.startLength().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public float value
The length value.

unit

public short unit
The length type.
Constructor Detail

UnitProcessor.UnitResolver

public UnitProcessor.UnitResolver()
Method Detail

startLength

public void startLength()
                 throws ParseException
Implements LengthHandler.startLength().
Specified by:
startLength in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

lengthValue

public void lengthValue(float v)
                 throws ParseException
Implements LengthHandler.lengthValue(float).
Specified by:
lengthValue in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

em

public void em()
        throws ParseException
Implements LengthHandler.em().
Specified by:
em in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

ex

public void ex()
        throws ParseException
Implements LengthHandler.ex().
Specified by:
ex in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

in

public void in()
        throws ParseException
Implements LengthHandler.in().
Specified by:
in in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

cm

public void cm()
        throws ParseException
Implements LengthHandler.cm().
Specified by:
cm in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

mm

public void mm()
        throws ParseException
Implements LengthHandler.mm().
Specified by:
mm in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

pc

public void pc()
        throws ParseException
Implements LengthHandler.pc().
Specified by:
pc in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

pt

public void pt()
        throws ParseException
Implements LengthHandler.pt().
Specified by:
pt in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

px

public void px()
        throws ParseException
Implements LengthHandler.px().
Specified by:
px in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

percentage

public void percentage()
                throws ParseException
Implements LengthHandler.percentage().
Specified by:
percentage in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length

endLength

public void endLength()
               throws ParseException
Implements LengthHandler.endLength().
Specified by:
endLength in interface LengthHandler
Following copied from interface: org.apache.batik.parser.LengthHandler
Throws:
ParseException - if an error occures while processing the length


Copyright © 2002 Apache Software Foundation. All Rights Reserved.