Android Open Source - HRForecast-WFM Pie Chart

From Project

Back to project page HRForecast-WFM.


The source code is released under:

Copyright 2014 Ahmed Shafei

If you think the Android project HRForecast-WFM 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 de.hrf.workforcemanagement.models.piechart;
//w ww  .j a v  a  2  s  .co m
import java.util.ArrayList;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

import de.hrf.workforcemanagement.models.ChartType;
import de.hrf.workforcemanagement.models.Property;

@Root(name = "pie_chart")
public class PieChart extends ChartType {

  @ElementList(name = "data")
  private ArrayList<PieRegion> pieData;

  public PieChart() {

  public PieChart(ArrayList<Property> pieProperties,
      ArrayList<PieRegion> pieData) {
    this.pieData = pieData;

  public ArrayList<PieRegion> getPieData() {
    return pieData;

  public void setPieData(ArrayList<PieRegion> pieData) {
    this.pieData = pieData;

  public String toString() {
    return "PieChart: (properties= " + this.getProperties() + ", data= "
        + this.getPieData() + ")";


Java Source Code List