Android Open Source - HzGrapher Circle 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.circlegraph;
//  w w w .j a v  a 2s.c  o m
import java.util.List;

import android.graphics.Color;

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

public class CircleGraphVO extends Graph{
  
  
  //animation
  private int         radius ;
  private int         lineColor       = Color.BLACK;
  private int         textColor       = Color.BLACK;
  private int         textSize       = 20;
  private int         graphBG       = -1;
  private int         centerX       = 0;
  private int         centerY       = 0;
  
  private GraphAnimation   animation       = null;
  private List<CircleGraph>   arrGraph       = null;
  private boolean       isDrawRegion    = false;
  private boolean       isPieChart      = false;
  
  public CircleGraphVO(List<CircleGraph> arrGraph) {
    super();
    this.arrGraph = arrGraph;
  }
  
  public CircleGraphVO(List<CircleGraph> arrGraph, int graphBG) {
    super();
    this.arrGraph = arrGraph;
    this.setGraphBG(graphBG);
  }
  
  public CircleGraphVO(int paddingBottom, int paddingTop, int paddingLeft,
      int paddingRight, int marginTop, int marginRight,int radius, List<CircleGraph> arrGraph) {
    super(paddingBottom, paddingTop, paddingLeft, paddingRight, marginTop, marginRight);
    this.arrGraph = arrGraph;
    this.radius = radius;
  }
  
  public CircleGraphVO(int paddingBottom, int paddingTop, int paddingLeft,
      int paddingRight, int marginTop, int marginRight,int radius, List<CircleGraph> arrGraph, int graphBG) {
    super(paddingBottom, paddingTop, paddingLeft, paddingRight, marginTop, marginRight);
    this.radius = radius;
    this.arrGraph = arrGraph;
    this.setGraphBG(graphBG);
  }
  
  public List<CircleGraph> getArrGraph() {
    return arrGraph;
  }

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

  public int getGraphBG() {
    return graphBG;
  }

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

  public GraphAnimation getAnimation() {
    return animation;
  }

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

  public boolean isDrawRegion() {
    return isDrawRegion;
  }

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

  public int getRadius() {
    return radius;
  }

  public void setRadius(int radius) {
    this.radius = radius;
  }

  public int getTextColor() {
    return textColor;
  }

  public void setTextColor(int textColor) {
    this.textColor = textColor;
  }

  public int getTextSize() {
    return textSize;
  }

  public void setTextSize(int textSize) {
    this.textSize = textSize;
  }

  public int getCenterX() {
    return centerX;
  }

  public void setCenterX(int centerX) {
    this.centerX = centerX;
  }

  public int getCenterY() {
    return centerY;
  }

  public void setCenterY(int centerY) {
    this.centerY = centerY;
  }

  public int getLineColor() {
    return lineColor;
  }

  public void setLineColor(int lineColor) {
    this.lineColor = lineColor;
  }

  public boolean isPieChart() {
    return isPieChart;
  }

  public void setPieChart(boolean isPieChart) {
    this.isPieChart = isPieChart;
  }
  
}




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