public void ready(final YuiContext Y) {
Graphic g1 = Y.newGraphic(GraphicConfig.create().render(parent));
//move the graphic to parent's position
g1.x(parent.getX()).y(parent.getY());
Shape rect1 = g1.addShape(ShapeConfig.createRect().
width(200).height(120).x(100).y(50).
fill(Fill.create().color("red").opacity(0.7))
);