Community
Participate
Working Groups
* @param bounds
*/
private void setRectangle(MUIElement node, Rectangle bounds) {
if (node.getWidget() instanceof Control)
if (node.getWidget() instanceof Control) {
((Control) (node.getWidget())).setBounds(bounds);
Control ctrl = (Control) node.getWidget();
else if (node instanceof MGenericTile<?>) {
ctrl.setBounds(bounds);
} else if (node instanceof MGenericTile<?>) {
Rectangle newRect = new Rectangle(bounds.x, bounds.y, bounds.width,
bounds.height);
node.setWidget(newRect);