|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.util.chart.Series
net.sf.jaer.util.chart.VectorSeries
public class VectorSeries
The VectorSeries class. * A VectorSeries is a data series to store vectors. The vectors can be accessed through indices.
Field Summary | |
---|---|
protected int |
sizeX
|
protected int |
sizeY
|
protected int |
sizeZ
|
Fields inherited from class net.sf.jaer.util.chart.Series |
---|
cache, capacity, DEFAULT_CAPACITY, dimension, elementsCount, elementSize, gl, vertices |
Constructor Summary | |
---|---|
VectorSeries(int sizeX,
int sizeY)
Create a new VectorSeries in 2 dimensions of given size. |
|
VectorSeries(int sizeX,
int sizeY,
int sizeZ)
Create a new VectorSeries in 3 dimensions of given size. |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl,
int method)
Draw the vectors. |
void |
set(int position,
float x,
float y)
Set a vector in the series cache. |
void |
set(int position,
float x,
float y,
float z)
Set a vector in the series cache. |
Methods inherited from class net.sf.jaer.util.chart.Series |
---|
add, add, clear |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int sizeX
protected int sizeY
protected int sizeZ
Constructor Detail |
---|
public VectorSeries(int sizeX, int sizeY)
sizeX
- number of x pointssizeY
- number of y pointspublic VectorSeries(int sizeX, int sizeY, int sizeZ)
Method Detail |
---|
public void set(int position, float x, float y)
position
- the element numberx
- the x valuey
- the y valuepublic void set(int position, float x, float y, float z)
position
- the element numberx
- the x valuey
- the y valuez
- the z valuepublic void draw(javax.media.opengl.GL gl, int method)
method
is ignored - the vectors are always drawn as lines.
draw
in class Series
gl
- the OpenGL context (must be identical betweeen calls)method
- the method of drawing the series line segments, e.g. GL.GL_LINE_STRIP
.
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |