|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ryanm.glvisualiser.imp.DataPlotter
public class DataPlotter
Provides a visualisation of a dataset
| Constructor Summary | |
|---|---|
DataPlotter(javax.media.opengl.GLAutoDrawable drawable,
java.awt.Color colour,
float width)
|
|
| Method Summary | |
|---|---|
void |
clearData()
Clears this plotter's data |
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
float |
getMaxLineWidth()
Gets the maximum line width possible with this OpenGL implementation |
boolean |
isPickable()
Determines if this dataplotter is pickable or not |
void |
render(javax.media.opengl.GLAutoDrawable drawable)
Renders the currently dataset |
void |
setAdaptive(boolean b)
Sets if the plotter will adapt to the data's value range |
void |
setColour(java.awt.Color colour)
Sets the colour of this dataplotter |
void |
setData(float[] data)
Sets the data array to visualise |
void |
setData(float[][] data)
Sets the data array to visualise |
void |
setLabel(java.lang.String label)
Sets the label. |
void |
setOffset(float f)
Sets the offset for this plotter. |
void |
setPickable(boolean b)
Sets the pickable status of this dataplotter. |
void |
setValueRange(float[] range)
Sets the min and max values of this data plotter. |
void |
setWidth(float width)
Sets the width of the lines of the plot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataPlotter(javax.media.opengl.GLAutoDrawable drawable,
java.awt.Color colour,
float width)
drawable - colour - width - | Method Detail |
|---|
public void setOffset(float f)
f - The offset distancepublic void setLabel(java.lang.String label)
label - public void setColour(java.awt.Color colour)
colour - The new colourpublic void setWidth(float width)
width - The desired widthpublic void setData(float[] data)
data - The data arraypublic void setData(float[][] data)
data - The data arraypublic void clearData()
public void setAdaptive(boolean b)
b - true to adapt, false to
use the set value rangepublic void setValueRange(float[] range)
range - A float array of at least two elements, with range[ 0 ] =
min, range[ 1 ] = maxpublic float getMaxLineWidth()
public void setPickable(boolean b)
b - true to enable picking, false otherwisepublic boolean isPickable()
public void render(javax.media.opengl.GLAutoDrawable drawable)
drawable - The GL context to render topublic Configurator getConfigurator()
Configurable
getConfigurator in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||