|
|
@@ -50,7 +50,7 @@ public class PflanzeImpl extends JComponent implements Pflanze |
|
|
|
{ |
|
|
|
|
|
|
|
float x_temp, y_temp; |
|
|
|
Turtle turtle = new Turtle(positionx, positiony, (float) ((Math.PI)/2)); |
|
|
|
Turtle turtle = new Turtle(positionx, positiony, (float) ((Math.PI) / 2)); |
|
|
|
CharacterIterator it = grammar.getIterator(); |
|
|
|
for (char ch = it.first(); ch != CharacterIterator.DONE; ch = it.next()) |
|
|
|
{ |
|
|
@@ -83,46 +83,59 @@ public class PflanzeImpl extends JComponent implements Pflanze |
|
|
|
System.err.println("character " + ch + " not in grammar"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public ArrayList<float[]> getPoints() |
|
|
|
{ |
|
|
|
return pts; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public int getPositionx() |
|
|
|
{ |
|
|
|
return positionx; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public int getPositiony() |
|
|
|
{ |
|
|
|
return positiony; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void setPositionx(int x) |
|
|
|
{ |
|
|
|
positionx = x; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void setPositiony(int y) |
|
|
|
{ |
|
|
|
positiony = y; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public int getflaeche() |
|
|
|
{ |
|
|
|
return flaeche; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void setAlgorithm() |
|
|
|
{ |
|
|
|
pts.removeAll(pts); |
|
|
|
translateRules(); |
|
|
|
} |
|
|
|
|
|
|
|
public void setPosition() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void setflaeche(int flaeche) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
} |