Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sum.komponenten.*;
- import sum.werkzeuge.*;
- import sum.ereignis.*;
- /**
- * @author
- * @version
- */
- public class Uhrfeld
- {
- private Buntstift stift;
- private int x;
- private int y;
- private int radius;
- private int aktwinkel;
- private int farbe;
- public Uhrfeld(int x,int y,int r,int startwinkel)
- {
- this.x = x;
- this.y = y;
- aktwinkel = startwinkel;
- radius = r;
- aktwinkel = startwinkel;
- stift = new Buntstift();
- }
- public void setzeWinkel(int w) {
- aktwinkel = w;
- zeichne();
- }
- public void zeichne() {
- stift.setzeFarbe(farbe);
- stift.hoch();
- stift.bewegeBis(x,y);
- stift.dreheBis(aktwinkel);
- stift.runter();
- stift.bewegeUm(radius);
- }
- public void setzeFarbe(int f) {
- farbe = f;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement