blob: 9591e0526b857196900ce2c5f4e7b3ce06338fcd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2010 Soyatec (http://www.soyatec.com) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Soyatec - initial API and implementation
*******************************************************************************/
package org.eclipse.xwt.tools.ui.designer.core.visuals.swt;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.xwt.tools.ui.designer.core.visuals.VisualInfo;
/**
* It is used to manage a visual widget such as SashFrom
*
* @author yyang <yves.yang@soyatec.com>
*/
public class RectangleInfo extends VisualInfo {
public RectangleInfo(Rectangle visualObject, boolean isRoot) {
super(visualObject, isRoot);
}
public Rectangle getBounds() {
return (Rectangle) getVisualObject();
}
public Rectangle getVisualObject() {
return (Rectangle) super.getVisualObject();
}
public void refreshImage() {
// do nothing.
}
}