public void setSize(int x,int y){
appletRoot.setSize(x + appletRoot.getBorderWidth() , y + appletRoot.getBorderWidth() );
}
public BoundingBox getMinViewingSize(){
BoundingBox box = appletRoot.getFigure().minSize;
Rectangle r = appletRoot.computeTrim(0, 0, FigureMath.round(box.getX()), FigureMath.round(box.getY()));
return new BoundingBox(r.width, r.height);
}