public class G2DElementsBuffer extends java.lang.Object implements DataBuffer, ElementsBuffer
| Modifier and Type | Field and Description |
|---|---|
static int |
ELEMENT_SIZE
The current size of one element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.nio.FloatBuffer |
getData()
Return the data.
|
int |
getElementsSize()
Return the number of coordinate for one element.
|
int |
getSize()
Return the number of elements.
|
void |
setData(float[] newData,
int elementSize)
Set the data.
|
void |
setData(java.lang.Float[] newData,
int elementSize)
Set the data.
|
void |
setData(java.nio.FloatBuffer newData,
int elementsSize)
Set the data.
|
public static final int ELEMENT_SIZE
public void setData(float[] newData,
int elementSize)
ElementsBuffersetData in interface ElementsBuffernewData - the new data.elementSize - the size of data elements.public void setData(java.lang.Float[] newData,
int elementSize)
ElementsBuffersetData in interface ElementsBuffernewData - the new data.elementSize - the size of data elements.public void setData(java.nio.FloatBuffer newData,
int elementsSize)
ElementsBuffersetData in interface ElementsBuffernewData - the new data.elementsSize - the size of data elements.public int getSize()
DataBuffergetSize in interface DataBufferpublic int getElementsSize()
ElementsBuffergetElementsSize in interface ElementsBufferpublic java.nio.FloatBuffer getData()
DataBuffergetData in interface DataBuffergetData in interface ElementsBufferpublic void clear()
clear in interface DataBufferclear in interface ElementsBuffer