PieSlice.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Created by Daniel Nadeau
  3. * daniel.nadeau01@gmail.com
  4. * danielnadeau.blogspot.com
  5. *
  6. * Licensed to the Apache Software Foundation (ASF) under one
  7. or more contributor license agreements. See the NOTICE file
  8. distributed with this work for additional information
  9. regarding copyright ownership. The ASF licenses this file
  10. to you under the Apache License, Version 2.0 (the
  11. "License"); you may not use this file except in compliance
  12. with the License. You may obtain a copy of the License at
  13. http://www.apache.org/licenses/LICENSE-2.0
  14. Unless required by applicable law or agreed to in writing,
  15. software distributed under the License is distributed on an
  16. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17. KIND, either express or implied. See the License for the
  18. specific language governing permissions and limitations
  19. under the License.
  20. */
  21. package com.echo.holographlibrary;
  22. import android.graphics.Color;
  23. import android.graphics.Path;
  24. import android.graphics.Region;
  25. public class PieSlice {
  26. private int color = Color.BLACK;
  27. private float value;
  28. private String title;
  29. private Path path;
  30. private Region region;
  31. public String getTitle() {
  32. return title;
  33. }
  34. public void setTitle(String title) {
  35. this.title = title;
  36. }
  37. public int getColor() {
  38. return color;
  39. }
  40. public void setColor(int color) {
  41. this.color = color;
  42. }
  43. public float getValue() {
  44. return value;
  45. }
  46. public void setValue(float value) {
  47. this.value = value;
  48. }
  49. public Path getPath() {
  50. return path;
  51. }
  52. public void setPath(Path path) {
  53. this.path = path;
  54. }
  55. public Region getRegion() {
  56. return region;
  57. }
  58. public void setRegion(Region region) {
  59. this.region = region;
  60. }
  61. }