public class FloatArrayProducer extends DefaultNumberListHandler implements PointsHandler
Modifier and Type | Field and Description |
---|---|
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.
|
INSTANCE
Constructor and Description |
---|
FloatArrayProducer() |
Modifier and Type | Method and Description |
---|---|
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() . |
endNumber, startNumber
protected java.util.LinkedList as
float[]
objects.protected float[] a
float[]
object.protected int index
protected int count
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 pointParseException
- 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
pointsCopyright © 2022 Apache Software Foundation. All Rights Reserved.