Package org.apache.batik.parser
Class UnitProcessor.UnitResolver
java.lang.Object
org.apache.batik.parser.UnitProcessor.UnitResolver
- All Implemented Interfaces:
LengthHandler
- Enclosing class:
- UnitProcessor
A LengthHandler that convert units.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cm()
ImplementsLengthHandler.cm()
.void
em()
ImplementsLengthHandler.em()
.void
ImplementsLengthHandler.endLength()
.void
ex()
ImplementsLengthHandler.ex()
.void
in()
ImplementsLengthHandler.in()
.void
lengthValue
(float v) ImplementsLengthHandler.lengthValue(float)
.void
mm()
ImplementsLengthHandler.mm()
.void
pc()
ImplementsLengthHandler.pc()
.void
ImplementsLengthHandler.percentage()
.void
pt()
ImplementsLengthHandler.pt()
.void
px()
ImplementsLengthHandler.px()
.void
ImplementsLengthHandler.startLength()
.
-
Field Details
-
value
public float valueThe length value. -
unit
public short unitThe length type.
-
-
Constructor Details
-
UnitResolver
public UnitResolver()
-
-
Method Details
-
startLength
ImplementsLengthHandler.startLength()
.- Specified by:
startLength
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
lengthValue
ImplementsLengthHandler.lengthValue(float)
.- Specified by:
lengthValue
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
em
ImplementsLengthHandler.em()
.- Specified by:
em
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
ex
ImplementsLengthHandler.ex()
.- Specified by:
ex
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
in
ImplementsLengthHandler.in()
.- Specified by:
in
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
cm
ImplementsLengthHandler.cm()
.- Specified by:
cm
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
mm
ImplementsLengthHandler.mm()
.- Specified by:
mm
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
pc
ImplementsLengthHandler.pc()
.- Specified by:
pc
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
pt
ImplementsLengthHandler.pt()
.- Specified by:
pt
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
px
ImplementsLengthHandler.px()
.- Specified by:
px
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
percentage
ImplementsLengthHandler.percentage()
.- Specified by:
percentage
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
endLength
ImplementsLengthHandler.endLength()
.- Specified by:
endLength
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-