public class G2DIndicesBuffer extends java.lang.Object implements IndicesBuffer, DataBuffer
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.nio.IntBuffer |
getData()
Return the data.
|
int |
getSize()
Return the number of elements.
|
void |
setData(java.util.Collection<java.lang.Integer> indices)
Set the data
|
void |
setData(int[] indices)
Set the data
|
void |
setData(java.nio.IntBuffer indexBuffer)
Set the data.
|
public void setData(int[] indices)
IndicesBuffer
setData
in interface IndicesBuffer
indices
- the new data.public void setData(java.util.Collection<java.lang.Integer> indices)
IndicesBuffer
setData
in interface IndicesBuffer
indices
- the new data.public void setData(java.nio.IntBuffer indexBuffer)
IndicesBuffer
setData
in interface IndicesBuffer
indexBuffer
- the new data.public int getSize()
DataBuffer
getSize
in interface DataBuffer
public java.nio.IntBuffer getData()
DataBuffer
getData
in interface DataBuffer
getData
in interface IndicesBuffer
public void clear()
clear
in interface DataBuffer
clear
in interface IndicesBuffer