You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Bar.java 534B

12345678910111213141516171819202122232425262728
  1. package com.feemers.android.fftdrawer;
  2. import android.graphics.Color;
  3. public class Bar {
  4. private float value;
  5. private int harmonics;
  6. private float frequency;
  7. private final int color;
  8. public Bar(float value, int harmonics) {
  9. this.value = value;
  10. this.harmonics = harmonics;
  11. color = Color.rgb(0,255,0);
  12. }
  13. public float getValue(){
  14. return value;
  15. }
  16. public int getHarmonics() {
  17. return harmonics;
  18. }
  19. public int getColor(){
  20. return color;
  21. }
  22. }