|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.batik.parser.DefaultLengthHandler
org.apache.batik.parser.DefaultLengthListHandler
org.apache.batik.parser.LengthArrayProducer
A handler class that generates an array of shorts and an array floats from parsing a length list.
| Field Summary | |
protected int |
count
The total number of lengths accumulated. |
protected short |
currentUnit
The unit for the current length. |
protected int |
index
The index in which to store the next length. |
protected short[] |
u
The current short[] object. |
protected LinkedList |
us
List of short[] objects. |
protected float[] |
v
The current float[] object. |
protected LinkedList |
vs
List of float[] objects. |
| Fields inherited from class org.apache.batik.parser.DefaultLengthListHandler |
INSTANCE |
| Constructor Summary | |
LengthArrayProducer()
|
|
| Method Summary | |
void |
cm()
Implements LengthHandler.cm(). |
void |
em()
Implements LengthHandler.em(). |
void |
endLength()
Implements LengthHandler.endLength(). |
void |
endLengthList()
Invoked when the length list attribute ends. |
void |
ex()
Implements LengthHandler.ex(). |
short[] |
getLengthTypeArray()
Returns the array of length units accumulated. |
float[] |
getLengthValueArray()
Returns the array of length values accumulated. |
void |
in()
Implements LengthHandler.in(). |
void |
lengthValue(float val)
Implements LengthHandler.lengthValue(float). |
void |
mm()
Implements LengthHandler.mm(). |
void |
numberValue(float v)
Invoked when a float value has been parsed. |
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(). |
void |
startLengthList()
Invoked when the length list attribute starts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected LinkedList vs
float[] objects.
protected float[] v
float[] object.
protected LinkedList us
short[] objects.
protected short[] u
short[] object.
protected int index
protected int count
protected short currentUnit
| Constructor Detail |
public LengthArrayProducer()
| Method Detail |
public short[] getLengthTypeArray()
public float[] getLengthValueArray()
public void startLengthList()
throws ParseException
startLengthList in interface LengthListHandlerstartLengthList in class DefaultLengthListHandlerParseException - if an error occures while processing the
number list.
public void numberValue(float v)
throws ParseException
ParseException - if an error occures while processing
the number
public void lengthValue(float val)
throws ParseException
LengthHandler.lengthValue(float).
lengthValue in interface LengthHandlerlengthValue in class DefaultLengthHandlerParseException
public void startLength()
throws ParseException
LengthHandler.startLength().
startLength in interface LengthHandlerstartLength in class DefaultLengthHandlerParseException
public void endLength()
throws ParseException
LengthHandler.endLength().
endLength in interface LengthHandlerendLength in class DefaultLengthHandlerParseException
public void em()
throws ParseException
LengthHandler.em().
em in interface LengthHandlerem in class DefaultLengthHandlerParseException
public void ex()
throws ParseException
LengthHandler.ex().
ex in interface LengthHandlerex in class DefaultLengthHandlerParseException
public void in()
throws ParseException
LengthHandler.in().
in in interface LengthHandlerin in class DefaultLengthHandlerParseException
public void cm()
throws ParseException
LengthHandler.cm().
cm in interface LengthHandlercm in class DefaultLengthHandlerParseException
public void mm()
throws ParseException
LengthHandler.mm().
mm in interface LengthHandlermm in class DefaultLengthHandlerParseException
public void pc()
throws ParseException
LengthHandler.pc().
pc in interface LengthHandlerpc in class DefaultLengthHandlerParseException
public void pt()
throws ParseException
LengthHandler.pt().
pt in interface LengthHandlerpt in class DefaultLengthHandlerParseException
public void px()
throws ParseException
LengthHandler.px().
px in interface LengthHandlerpx in class DefaultLengthHandlerParseException
public void percentage()
throws ParseException
LengthHandler.percentage().
percentage in interface LengthHandlerpercentage in class DefaultLengthHandlerParseException
public void endLengthList()
throws ParseException
endLengthList in interface LengthListHandlerendLengthList in class DefaultLengthListHandlerParseException - if an error occures while processing the
number list.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||