Back to project page android-plotter.
The source code is released under:
Apache License
If you think the Android project android-plotter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.solovyev.android.plotter; //w w w. j av a 2 s. c om import javax.annotation.Nonnull; import javax.microedition.khronos.opengles.GL11; /** * Contains information about functions to be plotted and meshes to be drawn. This class doesn't do plotting but * provides all required data to a {@link org.solovyev.android.plotter.PlottingView} which should be connected to it. * Note that {@link org.solovyev.android.plotter.PlottingView} might be attached and detached at any time and this * doesn't affect neither functions list nor any other plot data stored in this class. This class also makes sure that * all meshes (including functions' graphs) are initialized prior to draw. */ public interface Plotter { public static final boolean D3 = true; void add(@Nonnull Function function); void add(@Nonnull PlotFunction function); void clearFunctions(); void update(@Nonnull PlotFunction function); void initGl(@Nonnull GL11 gl, boolean firstTime); void draw(@Nonnull GL11 gl); @Nonnull PlotData getPlotData(); void attachView(@Nonnull PlottingView view); void detachView(@Nonnull PlottingView view); void setDimensions(@Nonnull Dimensions dimensions); @Nonnull Dimensions getDimensions(); void updateDimensions(float zoom, int viewWidth, int viewHeight); boolean is3d(); void set3d(boolean d3); }