Package models.shapes

Class Rectangle

  • All Implemented Interfaces:
    IShapes

    public class Rectangle
    extends java.lang.Object
    implements IShapes
    model for rectangle in html
    • Constructor Detail

      • Rectangle

        public Rectangle​(java.lang.String canvasID)
    • Method Detail

      • getWidth

        public int getWidth()
      • setWidth

        public void setWidth​(int width)
      • getHeight

        public int getHeight()
      • setHeight

        public void setHeight​(int height)
      • getFill

        public Colours getFill()
      • setFill

        public void setFill​(Colours fill)
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface IShapes
      • getCx

        public int getCx()
        Specified by:
        getCx in interface IShapes
      • setCx

        public void setCx​(int cx)
        Specified by:
        setCx in interface IShapes
      • getCy

        public int getCy()
        Specified by:
        getCy in interface IShapes
      • setCy

        public void setCy​(int cy)
        Specified by:
        setCy in interface IShapes