NumberListHandler, PointsHandlerpublic class FloatArrayProducer extends DefaultNumberListHandler implements PointsHandler
| Modifier and Type | Field | 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 | Description |
|---|---|
FloatArrayProducer() |
| Modifier and Type | Method | 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, startNumberprotected 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 NumberListHandlerstartNumberList in class DefaultNumberListHandlerParseException - if an error occures while processing the
number list.public void numberValue(float v)
throws ParseException
numberValue in interface NumberListHandlernumberValue in class DefaultNumberListHandlerParseException - if an error occures while processing
the numberpublic void endNumberList()
throws ParseException
endNumberList in interface NumberListHandlerendNumberList in class DefaultNumberListHandlerParseException - if an error occures while processing the
number list.public void startPoints()
throws ParseException
PointsHandler.startPoints().startPoints in interface PointsHandlerParseException - if an error occured while processing the
pointspublic void point(float x,
float y)
throws ParseException
PointsHandler.point(float,float).point in interface PointsHandlerx - 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 PointsHandlerParseException - if an error occured while processing the
pointsCopyright ? 2018 Apache Software Foundation. All Rights Reserved.