Android Open Source - AnkiStats Multi Screen Part






From Project

Back to project page AnkiStats.

License

The source code is released under:

GNU General Public License

If you think the Android project AnkiStats listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * //from w w  w  . j a v a2 s.  com
 */
package com.wildplot.android.rendering;

import com.wildplot.android.rendering.interfaces.Drawable;

import java.util.Vector;

/**
 * This class is used to store informations for a certain plot in a multi-plot sheet.
 * The informations are the drawables for this plotsheet and the x and y limitations
 *
 */
public class MultiScreenPart {
  private double[] xRange = {-15,15};
  private double[] yRange = {-10,10};
  private Vector<Drawable> drawables = new Vector<Drawable>();
  
  
  
  /**
   *  Constructor for a screen part,
   * a screen part is build with its information about x- and y-range.
   * Drawable objects that will be drawn on the screen part can be added after construction.
   * 
   * @param xRange
   * @param yRange
   */
  public MultiScreenPart(double[] xRange, double[] yRange) {
    super();
    this.xRange = xRange;
    this.yRange = yRange;
  }
  
  /**
   * Constructor for a screen part,
   * a screen part is build with its information about x- and y-range, aswell as a list of Drawable objects that will be drawn
   * onto the screen part
   * 
   * @param xRange
   * @param yRange
   * @param drawables
   */
  public MultiScreenPart(double[] xRange, double[] yRange, Vector<Drawable> drawables) {
    super();
    this.xRange = xRange;
    this.yRange = yRange;
    this.drawables = drawables;
  }
  
  /**
   * get the x-range of this screen part
   * @return the xRange
   */
  public double[] getxRange() {
    return xRange;
  }
  
  /**
   * set the x-range of this screen-part
   * @param xRange the xRange to set
   */
  public void setxRange(double[] xRange) {
    this.xRange = xRange;
  }
  
  /**
   * Get the y-range of this screen part
   * @return the yRange
   */
  public double[] getyRange() {
    return yRange;
  }
  
  /**
   * Set the y-range for this screen part
   * @param yRange the yRange to set
   */
  public void setyRange(double[] yRange) {
    this.yRange = yRange;
  }
  /**
   * get the Drawable objects associated with this screen part
   * @return the drawables
   */
  public Vector<Drawable> getDrawables() {
    return drawables;
  }
  
  /**
   * add another Drawable object that shall be drawn onto the sheet
   * 
   * @param draw Drawable object which will be added to plot sheet
   */
  public void addDrawable(Drawable draw) {
    this.drawables.add(draw);
  }
  
}




Java Source Code List

com.wildplot.android.ankistats.AnkiDb.java
com.wildplot.android.ankistats.AnkiStatsActivity.java
com.wildplot.android.ankistats.AnkiStatsApplication.java
com.wildplot.android.ankistats.AnswerButton.java
com.wildplot.android.ankistats.ApplicationTest.java
com.wildplot.android.ankistats.CardsTypes.java
com.wildplot.android.ankistats.CollectionData.java
com.wildplot.android.ankistats.Forecast.java
com.wildplot.android.ankistats.HourlyBreakdown.java
com.wildplot.android.ankistats.Intervals.java
com.wildplot.android.ankistats.ReviewCount.java
com.wildplot.android.ankistats.Utils.java
com.wildplot.android.ankistats.WeeklyBreakdown.java
com.wildplot.android.parsing.Atom.java
com.wildplot.android.parsing.ExpressionFormatException.java
com.wildplot.android.parsing.Expression.java
com.wildplot.android.parsing.Factor.java
com.wildplot.android.parsing.Pow.java
com.wildplot.android.parsing.Term.java
com.wildplot.android.parsing.TopLevelParser.java
com.wildplot.android.parsing.TreeElement.java
com.wildplot.android.parsing.AtomTypes.FunctionXAtom.java
com.wildplot.android.parsing.AtomTypes.FunctionXYAtom.java
com.wildplot.android.parsing.AtomTypes.MathFunctionAtom.java
com.wildplot.android.parsing.AtomTypes.NumberAtom.java
com.wildplot.android.parsing.AtomTypes.VariableAtom.java
com.wildplot.android.parsing.AtomTypes.XVariableAtom.java
com.wildplot.android.parsing.AtomTypes.YVariableAtom.java
com.wildplot.android.rendering.AdvancedPlotSheet.java
com.wildplot.android.rendering.BarGraph.java
com.wildplot.android.rendering.DrawableContainer.java
com.wildplot.android.rendering.FunctionDrawer.java
com.wildplot.android.rendering.FunctionDrawer_y.java
com.wildplot.android.rendering.Integral.java
com.wildplot.android.rendering.LegendDrawable.java
com.wildplot.android.rendering.LinesPoints.java
com.wildplot.android.rendering.Lines.java
com.wildplot.android.rendering.MultiScreenPart.java
com.wildplot.android.rendering.PieChart.java
com.wildplot.android.rendering.PlotSheet.java
com.wildplot.android.rendering.PointDrawer2D.java
com.wildplot.android.rendering.RelativeColorGradient.java
com.wildplot.android.rendering.ReliefDrawer.java
com.wildplot.android.rendering.XAxisBarGraph.java
com.wildplot.android.rendering.XAxisHistoGram.java
com.wildplot.android.rendering.XAxis.java
com.wildplot.android.rendering.XGrid.java
com.wildplot.android.rendering.YAxisBarGraph.java
com.wildplot.android.rendering.YAxisHistoGram.java
com.wildplot.android.rendering.YAxis.java
com.wildplot.android.rendering.YGrid.java
com.wildplot.android.rendering.graphics.wrapper.BasicStroke.java
com.wildplot.android.rendering.graphics.wrapper.BufferedImage.java
com.wildplot.android.rendering.graphics.wrapper.Color.java
com.wildplot.android.rendering.graphics.wrapper.FontMetrics.java
com.wildplot.android.rendering.graphics.wrapper.Graphics2D.java
com.wildplot.android.rendering.graphics.wrapper.Graphics.java
com.wildplot.android.rendering.graphics.wrapper.Rectangle.java
com.wildplot.android.rendering.graphics.wrapper.Stroke.java
com.wildplot.android.rendering.interfaces.Drawable.java
com.wildplot.android.rendering.interfaces.Function2D.java
com.wildplot.android.rendering.interfaces.Function3D.java
com.wildplot.android.rendering.interfaces.Legendable.java
com.wildplot.android.rendering.interfaces.StepFunction2D.java