Interface ElementsBuffer
- All Superinterfaces:
DataBuffer
- All Known Implementing Classes:
G2DElementsBuffer, JoGLElementsBuffer
- Author:
- Pierre Lando
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getData()Return the data.intReturn the number of coordinate for one element.voidsetData(float[] data, int elementSize) Set the data.voidSet the data.voidsetData(FloatBuffer data, int elementsSize) Set the data.Methods inherited from interface DataBuffer
getSize
-
Method Details
-
setData
void setData(float[] data, int elementSize) Set the data.- Parameters:
data- the new data.elementSize- the size of data elements.
-
setData
Set the data.- Parameters:
data- the new data.elementSize- the size of data elements.
-
setData
Set the data.- Parameters:
data- the new data.elementsSize- the size of data elements.
-
getData
FloatBuffer getData()Description copied from interface:DataBufferReturn the data.- Specified by:
getDatain interfaceDataBuffer- Returns:
- the data.
-
getElementsSize
int getElementsSize()Return the number of coordinate for one element.- Returns:
- the number of coordinate for one element.
-
clear
void clear()- Specified by:
clearin interfaceDataBuffer
-