|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.parser.DefaultNumberListHandler
org.apache.batik.parser.FloatArrayProducer
public class FloatArrayProducer
A handler class that generates an array of floats from parsing a number list or a point list.
Field Summary | |
---|---|
protected float[] |
a
The current float[] object. |
protected java.util.LinkedList |
as
List of float[] objects. |
protected int |
count
The total number of floats accumulated. |
protected int |
index
The index in which to store the next number. |
Fields inherited from class org.apache.batik.parser.DefaultNumberListHandler |
---|
INSTANCE |
Constructor Summary | |
---|---|
FloatArrayProducer()
|
Method Summary | |
---|---|
void |
endNumberList()
Invoked when the number list attribute ends. |
void |
endPoints()
Implements PointsHandler.endPoints() . |
float[] |
getFloatArray()
Returns the array of floats accumulated. |
void |
numberValue(float v)
Invoked when a float value has been parsed. |
void |
point(float x,
float y)
Implements PointsHandler.point(float,float) . |
void |
startNumberList()
Invoked when the number list attribute starts. |
void |
startPoints()
Implements PointsHandler.startPoints() . |
Methods inherited from class org.apache.batik.parser.DefaultNumberListHandler |
---|
endNumber, startNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.LinkedList as
float[]
objects.
protected float[] a
float[]
object.
protected int index
protected int count
Constructor Detail |
---|
public FloatArrayProducer()
Method Detail |
---|
public float[] getFloatArray()
public void startNumberList() throws ParseException
startNumberList
in interface NumberListHandler
startNumberList
in class DefaultNumberListHandler
ParseException
- if an error occures while processing the
number list.public void numberValue(float v) throws ParseException
numberValue
in interface NumberListHandler
numberValue
in class DefaultNumberListHandler
ParseException
- if an error occures while processing
the numberpublic void endNumberList() throws ParseException
endNumberList
in interface NumberListHandler
endNumberList
in class DefaultNumberListHandler
ParseException
- if an error occures while processing the
number list.public void startPoints() throws ParseException
PointsHandler.startPoints()
.
startPoints
in interface PointsHandler
ParseException
- if an error occured while processing the
pointspublic void point(float x, float y) throws ParseException
PointsHandler.point(float,float)
.
point
in interface PointsHandler
x
- the x coordinate of the pointy
- the y coordinate of the point
ParseException
- if an error occured while processing the
pointspublic void endPoints() throws ParseException
PointsHandler.endPoints()
.
endPoints
in interface PointsHandler
ParseException
- if an error occured while processing the
points
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |