|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
float x_temp, y_temp; |
|
|
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(); |
|
|
CharacterIterator it = grammar.getIterator(); |
|
|
for (char ch = it.first(); ch != CharacterIterator.DONE; ch = it.next()) |
|
|
for (char ch = it.first(); ch != CharacterIterator.DONE; ch = it.next()) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
System.err.println("character " + ch + " not in grammar"); |
|
|
System.err.println("character " + ch + " not in grammar"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
public ArrayList<float[]> getPoints() |
|
|
public ArrayList<float[]> getPoints() |
|
|
{ |
|
|
{ |
|
|
return pts; |
|
|
return pts; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
public int getPositionx() |
|
|
public int getPositionx() |
|
|
{ |
|
|
{ |
|
|
return positionx; |
|
|
return positionx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
public int getPositiony() |
|
|
public int getPositiony() |
|
|
{ |
|
|
{ |
|
|
return positiony; |
|
|
return positiony; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
public void setPositionx(int x) |
|
|
public void setPositionx(int x) |
|
|
{ |
|
|
{ |
|
|
positionx = x; |
|
|
positionx = x; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
public void setPositiony(int y) |
|
|
public void setPositiony(int y) |
|
|
{ |
|
|
{ |
|
|
positiony = y; |
|
|
positiony = y; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
public int getflaeche() |
|
|
public int getflaeche() |
|
|
{ |
|
|
{ |
|
|
return flaeche; |
|
|
return flaeche; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
public void setAlgorithm() |
|
|
public void setAlgorithm() |
|
|
{ |
|
|
{ |
|
|
pts.removeAll(pts); |
|
|
pts.removeAll(pts); |
|
|
translateRules(); |
|
|
translateRules(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void setPosition() |
|
|
public void setPosition() |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void setflaeche(int flaeche) |
|
|
|
|
|
{ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |