Bar.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.Path;
  23. import android.graphics.Region;
  24. public class Bar {
  25. private int mColor;
  26. private String mName = null;
  27. private float mValue;
  28. private String mValueString = null;
  29. private Path mPath = null;
  30. private Region mRegion = null;
  31. public int getColor() {
  32. return mColor;
  33. }
  34. public void setColor(int color) {
  35. this.mColor = color;
  36. }
  37. public String getName() {
  38. return mName;
  39. }
  40. public void setName(String name) {
  41. this.mName = name;
  42. }
  43. public float getValue() {
  44. return mValue;
  45. }
  46. public void setValue(float value) {
  47. this.mValue = value;
  48. }
  49. public String getValueString()
  50. {
  51. if (mValueString != null) {
  52. return mValueString;
  53. } else {
  54. return String.valueOf(mValue);
  55. }
  56. }
  57. public void setValueString(final String valueString)
  58. {
  59. mValueString = valueString;
  60. }
  61. public Path getPath() {
  62. return mPath;
  63. }
  64. public void setPath(Path path) {
  65. this.mPath = path;
  66. }
  67. public Region getRegion() {
  68. return mRegion;
  69. }
  70. public void setRegion(Region region) {
  71. this.mRegion = region;
  72. }
  73. }