Class G2DElementsBuffer
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.g2d.buffers.G2DElementsBuffer
-
- All Implemented Interfaces:
DataBuffer,ElementsBuffer
public class G2DElementsBuffer extends java.lang.Object implements DataBuffer, ElementsBuffer
- Author:
- Calixte DENIZET
-
-
Field Summary
Fields Modifier and Type Field Description static intELEMENT_SIZEThe current size of one element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.nio.FloatBuffergetData()Return the data.intgetElementsSize()Return the number of coordinate for one element.intgetSize()Return the number of elements.voidsetData(float[] newData, int elementSize)Set the data.voidsetData(java.lang.Float[] newData, int elementSize)Set the data.voidsetData(java.nio.FloatBuffer newData, int elementsSize)Set the data.
-
-
-
Field Detail
-
ELEMENT_SIZE
public static final int ELEMENT_SIZE
The current size of one element.- See Also:
- Constant Field Values
-
-
Method Detail
-
setData
public void setData(float[] newData, int elementSize)Description copied from interface:ElementsBufferSet the data.- Specified by:
setDatain interfaceElementsBuffer- Parameters:
newData- the new data.elementSize- the size of data elements.
-
setData
public void setData(java.lang.Float[] newData, int elementSize)Description copied from interface:ElementsBufferSet the data.- Specified by:
setDatain interfaceElementsBuffer- Parameters:
newData- the new data.elementSize- the size of data elements.
-
setData
public void setData(java.nio.FloatBuffer newData, int elementsSize)Description copied from interface:ElementsBufferSet the data.- Specified by:
setDatain interfaceElementsBuffer- Parameters:
newData- the new data.elementsSize- the size of data elements.
-
getSize
public int getSize()
Description copied from interface:DataBufferReturn the number of elements.- Specified by:
getSizein interfaceDataBuffer- Returns:
- the number of elements.
-
getElementsSize
public int getElementsSize()
Description copied from interface:ElementsBufferReturn the number of coordinate for one element.- Specified by:
getElementsSizein interfaceElementsBuffer- Returns:
- the number of coordinate for one element.
-
getData
public java.nio.FloatBuffer getData()
Description copied from interface:DataBufferReturn the data.- Specified by:
getDatain interfaceDataBuffer- Specified by:
getDatain interfaceElementsBuffer- Returns:
- the data.
-
clear
public void clear()
- Specified by:
clearin interfaceDataBuffer- Specified by:
clearin interfaceElementsBuffer
-
-