Código PHP:
public void paintContents2(Graphics g) {
g.clearRect(0,0,WIDTH+20,HEIGHT);
xOffset=yOffset=0;
Vector shapes=tr.getAllShapes();//////-> OBSOLETE COLLECTION
///////////////////////////////////////////////////////////////////
//->as of release 5, 'enum' is a keyword, and may not be used
// as an identifier (use -source 1.4 or lower to use 'enum' as an identifier)
Enumeration enum = shapes.elements();
while (enum.hasMoreElements()) {
Tool.Shape s = (Tool.Shape)enum.nextElement();
////////////////////////////////////////////////////////////////////////
s.updateState(this);
}
public void addShape(Tool.Shape s) { //->Ilegal start of expression
myShapes.addElement(s);
tr.addShape(s);
}