Class G2DIndicesBuffer
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.g2d.buffers.G2DIndicesBuffer
-
- All Implemented Interfaces:
DataBuffer
,IndicesBuffer
public class G2DIndicesBuffer extends java.lang.Object implements IndicesBuffer, DataBuffer
- Author:
- Calixte DENIZET
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.nio.IntBuffer
getData()
Return the data.int
getSize()
Return the number of elements.void
setData(int[] indices)
Set the datavoid
setData(java.nio.IntBuffer indexBuffer)
Set the data.void
setData(java.util.Collection<java.lang.Integer> indices)
Set the data
-
-
-
Method Detail
-
setData
public void setData(int[] indices)
Description copied from interface:IndicesBuffer
Set the data- Specified by:
setData
in interfaceIndicesBuffer
- Parameters:
indices
- the new data.
-
setData
public void setData(java.util.Collection<java.lang.Integer> indices)
Description copied from interface:IndicesBuffer
Set the data- Specified by:
setData
in interfaceIndicesBuffer
- Parameters:
indices
- the new data.
-
setData
public void setData(java.nio.IntBuffer indexBuffer)
Description copied from interface:IndicesBuffer
Set the data.- Specified by:
setData
in interfaceIndicesBuffer
- Parameters:
indexBuffer
- the new data.
-
getSize
public int getSize()
Description copied from interface:DataBuffer
Return the number of elements.- Specified by:
getSize
in interfaceDataBuffer
- Returns:
- the number of elements.
-
getData
public java.nio.IntBuffer getData()
Description copied from interface:DataBuffer
Return the data.- Specified by:
getData
in interfaceDataBuffer
- Specified by:
getData
in interfaceIndicesBuffer
- Returns:
- the data.
-
clear
public void clear()
- Specified by:
clear
in interfaceDataBuffer
- Specified by:
clear
in interfaceIndicesBuffer
-
-