ObjectInstance.java 874 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package audio;
  2. import java.awt.Color;
  3. public class ObjectInstance {
  4. private long time;
  5. private int direction;
  6. private Color color;
  7. private boolean hold;
  8. private long length;
  9. public ObjectInstance()
  10. {
  11. time = 0;
  12. direction = 0;
  13. color = null;
  14. hold = false;
  15. length = 0;
  16. }
  17. public long getTime() {
  18. return time;
  19. }
  20. public void setTime(long time) {
  21. this.time = time;
  22. }
  23. public int getDirection() {
  24. return direction;
  25. }
  26. public void setDirection(int direction) {
  27. this.direction = direction;
  28. }
  29. public Color getColor() {
  30. return color;
  31. }
  32. public void setColor(Color color) {
  33. this.color = color;
  34. }
  35. public boolean isHold() {
  36. return hold;
  37. }
  38. public void setHold(boolean hold) {
  39. this.hold = hold;
  40. }
  41. public long getLength() {
  42. return length;
  43. }
  44. public void setLength(long length) {
  45. this.length = length;
  46. }
  47. }