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.

Gartenkomponente.java 800B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package garten.model;
  7. import java.awt.Graphics;
  8. /**
  9. *
  10. * @author Jan
  11. */
  12. public class Gartenkomponente implements Position
  13. {
  14. int flaeche = 50;
  15. public int positionx = 0;
  16. public int positiony = 0;
  17. public void setflaeche(int flaeche)
  18. {
  19. }
  20. public void setPositionx(int x)
  21. {
  22. positionx = x;
  23. }
  24. public void setPositiony(int y)
  25. {
  26. positiony = y;
  27. }
  28. public int getflaeche()
  29. {
  30. return flaeche*flaeche;
  31. }
  32. public int getPositionx()
  33. {
  34. return positionx;
  35. }
  36. public int getPositiony()
  37. {
  38. return positiony;
  39. }
  40. public void paintComponent(Graphics g)
  41. {
  42. }
  43. }