|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.scirenderer.examples.ScilabLikePlot2D.Plot2DDrawer
public static class ScilabLikePlot2D.Plot2DDrawer
A plot2d like drawer
Constructor Summary | |
---|---|
ScilabLikePlot2D.Plot2DDrawer(Canvas canvas,
MouseRotationAdapter mra)
Default constructor. |
Method Summary | |
---|---|
void |
draw(DrawingTools drawingTools)
Ask this drawer to draw with the given drawing tools. |
float[] |
getSinData(float theta,
int density,
float bound)
Return a float array filled with some "y = sin(theta * x)" data. |
TextureDrawer |
getSpriteDrawer()
Return a sprite drawer. |
RulerModel |
getXRulerModel()
Return the X ruler model. |
RulerModel |
getYRulerModel()
Return the Y ruler model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScilabLikePlot2D.Plot2DDrawer(Canvas canvas, MouseRotationAdapter mra)
canvas
- parent Canvas
mra
- a MouseRotationAdapter
to add some interactivity.Method Detail |
---|
public void draw(DrawingTools drawingTools)
Drawer
draw
in interface Drawer
drawingTools
- the givens drawing tools.public float[] getSinData(float theta, int density, float bound)
theta
- the data period.density
- the data density (number of point).bound
- the data bounds (result have x in [-bound, bound[).
public TextureDrawer getSpriteDrawer()
public RulerModel getXRulerModel()
public RulerModel getYRulerModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |