Android Open Source - HzGrapher Bar Graph V O






From Project

Back to project page HzGrapher.

License

The source code is released under:

Apache License

If you think the Android project HzGrapher 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

package com.handstudio.android.hzgrapherlib.vo.bargraph;
//  w w  w. j a v a 2s  . com
import java.util.List;

import com.handstudio.android.hzgrapherlib.animation.GraphAnimation;
import com.handstudio.android.hzgrapherlib.vo.Graph;

public class BarGraphVO extends Graph {

  private float minValueX;
  private float maxValueX;

  private float minValueY;
  private float maxValueY;

  private float incrementX;
  private float incrementY;

  private float barWidth;

  private int graphBG;
  private long animationDuration;

  private boolean isAnimationShow;
  private boolean isDrawRegion = false;

  private GraphAnimation animation = null;
  private List<BarGraph> arrGraph = null;
  private String[] legendArr = null;

  public BarGraphVO(String[] legendArr, List<BarGraph> arrGraph,
      int paddingTop, int paddingBottom, int paddingLeft,int paddingRight, 
      int marginTop, int marginRight, 
      int minValueX, int minValueY, int maxValueX, int maxValueY, 
      int incrementX, int incrementY,
      int barWidth, 
      int graphBG) {
    super(paddingBottom, paddingTop, paddingLeft, paddingRight, marginTop, marginRight);
    this.minValueX = minValueX;
    this.maxValueX = maxValueX;
    this.minValueY = minValueY;
    this.maxValueY = maxValueY;
    this.incrementX = incrementX;
    this.incrementY = incrementY;
    this.barWidth = barWidth;
    this.legendArr = legendArr;
    this.arrGraph = arrGraph;
    this.graphBG = graphBG;
  }

  public float getMinValueX() {
    return minValueX;
  }

  public void setMinValueX(float minValueX) {
    this.minValueX = minValueX;
  }

  public float getMaxValueX() {
    return maxValueX;
  }

  public void setMaxValueX(float maxValueX) {
    this.maxValueX = maxValueX;
  }

  public float getMinValueY() {
    return minValueY;
  }

  public void setMinValueY(float minValueY) {
    this.minValueY = minValueY;
  }

  public float getMaxValueY() {
    return maxValueY;
  }

  public void setMaxValueY(float maxValueY) {
    this.maxValueY = maxValueY;
  }

  public float getIncrementX() {
    return incrementX;
  }

  public void setIncrementX(float incrementX) {
    this.incrementX = incrementX;
  }

  public float getIncrementY() {
    return incrementY;
  }

  public void setIncrementY(float incrementY) {
    this.incrementY = incrementY;
  }

  public float getBarWidth() {
    return barWidth;
  }

  public void setBarWidth(float barWidth) {
    this.barWidth = barWidth;
  }

  public int getGraphBG() {
    return graphBG;
  }

  public void setGraphBG(int graphBG) {
    this.graphBG = graphBG;
  }

  public long getAnimationDuration() {
    return animationDuration;
  }

  public void setAnimationDuration(long animationDuration) {
    this.animationDuration = animationDuration;
  }

  public boolean isAnimationShow() {
    return isAnimationShow;
  }

  public void setAnimationShow(boolean isAnimationShow) {
    this.isAnimationShow = isAnimationShow;
  }

  public boolean isDrawRegion() {
    return isDrawRegion;
  }

  public void setDrawRegion(boolean isDrawRegion) {
    this.isDrawRegion = isDrawRegion;
  }

  public List<BarGraph> getArrGraph() {
    return arrGraph;
  }

  public void setArrGraph(List<BarGraph> arrGraph) {
    this.arrGraph = arrGraph;
  }

  public String[] getLegendArr() {
    return legendArr;
  }

  public void setLegendArr(String[] legendArr) {
    this.legendArr = legendArr;
  }

  public GraphAnimation getAnimation() {
    return animation;
  }

  public void setAnimation(GraphAnimation animation) {
    this.animation = animation;
  }
  
}




Java Source Code List

com.handstudio.android.hzgrapher.BarGraphActivity.java
com.handstudio.android.hzgrapher.BubbleGraphActivity.java
com.handstudio.android.hzgrapher.BubbleGraphActivity.java
com.handstudio.android.hzgrapher.CircleGraphActivity.java
com.handstudio.android.hzgrapher.CircleGraphActivity.java
com.handstudio.android.hzgrapher.CurveCompareGraphActivity.java
com.handstudio.android.hzgrapher.CurveCompareGraphActivity.java
com.handstudio.android.hzgrapher.CurveGraphActivity.java
com.handstudio.android.hzgrapher.CurveGraphActivity.java
com.handstudio.android.hzgrapher.CurveGraphWithRegionActivity.java
com.handstudio.android.hzgrapher.CurveGraphWithRegionActivity.java
com.handstudio.android.hzgrapher.LineCompareGraphActivity.java
com.handstudio.android.hzgrapher.LineCompareGraphActivity.java
com.handstudio.android.hzgrapher.LineGraphActivity.java
com.handstudio.android.hzgrapher.LineGraphActivity.java
com.handstudio.android.hzgrapher.LineGraphWithRegionActivity.java
com.handstudio.android.hzgrapher.LineGraphWithRegionActivity.java
com.handstudio.android.hzgrapher.MainActivity.java
com.handstudio.android.hzgrapher.MainActivity.java
com.handstudio.android.hzgrapher.PieGraphActivity.java
com.handstudio.android.hzgrapher.PieGraphActivity.java
com.handstudio.android.hzgrapher.RadarGraphActivity.java
com.handstudio.android.hzgrapher.RadarGraphActivity.java
com.handstudio.android.hzgrapher.ScatterGraphActivity.java
com.handstudio.android.hzgrapher.ScatterGraphActivity.java
com.handstudio.android.hzgrapherlib.animation.GraphAnimation.java
com.handstudio.android.hzgrapherlib.canvas.GraphCanvasWrapper.java
com.handstudio.android.hzgrapherlib.error.ErrorCode.java
com.handstudio.android.hzgrapherlib.error.ErrorDetector.java
com.handstudio.android.hzgrapherlib.graphview.BarGraphView.java
com.handstudio.android.hzgrapherlib.graphview.BubbleGraphView.java
com.handstudio.android.hzgrapherlib.graphview.CircleGraphView.java
com.handstudio.android.hzgrapherlib.graphview.CurveCompareGraphView.java
com.handstudio.android.hzgrapherlib.graphview.CurveGraphView.java
com.handstudio.android.hzgrapherlib.graphview.LineCompareGraphView.java
com.handstudio.android.hzgrapherlib.graphview.LineGraphView.java
com.handstudio.android.hzgrapherlib.graphview.RadarGraphView.java
com.handstudio.android.hzgrapherlib.graphview.ScatterGraphView.java
com.handstudio.android.hzgrapherlib.path.GraphPath.java
com.handstudio.android.hzgrapherlib.util.Converter.java
com.handstudio.android.hzgrapherlib.util.EuclidLine.java
com.handstudio.android.hzgrapherlib.util.EuclidPoint.java
com.handstudio.android.hzgrapherlib.util.IntersectFinder.java
com.handstudio.android.hzgrapherlib.util.MatrixTranslator.java
com.handstudio.android.hzgrapherlib.util.Spline.java
com.handstudio.android.hzgrapherlib.vo.GraphNameBox.java
com.handstudio.android.hzgrapherlib.vo.Graph.java
com.handstudio.android.hzgrapherlib.vo.bargraph.BarGraphVO.java
com.handstudio.android.hzgrapherlib.vo.bargraph.BarGraph.java
com.handstudio.android.hzgrapherlib.vo.bubblegraph.BubbleGraphVO.java
com.handstudio.android.hzgrapherlib.vo.bubblegraph.BubbleGraph.java
com.handstudio.android.hzgrapherlib.vo.circlegraph.CircleGraphVO.java
com.handstudio.android.hzgrapherlib.vo.circlegraph.CircleGraph.java
com.handstudio.android.hzgrapherlib.vo.curvegraph.CurveGraphVO.java
com.handstudio.android.hzgrapherlib.vo.curvegraph.CurveGraph.java
com.handstudio.android.hzgrapherlib.vo.linegraph.LineGraphVO.java
com.handstudio.android.hzgrapherlib.vo.linegraph.LineGraph.java
com.handstudio.android.hzgrapherlib.vo.radargraph.RadarGraphVO.java
com.handstudio.android.hzgrapherlib.vo.radargraph.RadarGraph.java
com.handstudio.android.hzgraphlib.vo.scattergraph.ScatterGraphVO.java
com.handstudio.android.hzgraphlib.vo.scattergraph.ScatterGraph.java