};
// width
BoundsProperty<?> widthProperty = new BoundsProperty<CanvasInfo>(canvas, "width") {
@Override
public void setValue2(int value, Rectangle modelBounds) throws Exception {
command_BOUNDS(m_component, null, new Dimension(value, modelBounds.height));
}
};
// height
BoundsProperty<?> heightProperty = new BoundsProperty<CanvasInfo>(canvas, "height") {
@Override
public void setValue2(int value, Rectangle modelBounds) throws Exception {
command_BOUNDS(m_component, null, new Dimension(modelBounds.width, value));
}
};
boundsProperty.setProperties(new Property[]{
xProperty,
yProperty,