public void removeChild(Surface child) { if (children.remove(child)) { child.setParent(null); } }
public void addChild(Surface child) { children.add(child); child.setParent(this); }