Code example for Shape

Methods: resize

0
    public float getWidth() { 
        return shape.getShape().getWidth();
    } 
    public void setWidth(float width) {
        Shape s = shape.getShape();
        s.resize(width, s.getHeight());
    } 
 
    public float getHeight() { 
        return shape.getShape().getHeight();
    } 
    public void setHeight(float height) {
        Shape s = shape.getShape();
        s.resize(s.getWidth(), height);
    } 
 
    public ShapeHolder(ShapeDrawable s) {
        shape = s;
    } 
} 
Experience pair programming with AI  Get Codota for Java