Class ShapeCreation


  • public class ShapeCreation
    extends java.lang.Object
    • Constructor Detail

      • ShapeCreation

        public ShapeCreation()
        manages the creation of all shapes
    • Method Detail

      • createShape

        public IShapes createShape​(java.lang.String shapeType,
                                   java.util.List<java.lang.String> mainParams)
                            throws ShapeCreationException
        discerns which shape to make and what parameters needed
        Parameters:
        shapeType - String
        mainParams - Stringlist
        Returns:
        IShapes
        Throws:
        ShapeCreationException - if problem with shapeCreation
      • setShapeCreation

        public void setShapeCreation​(ICreateShape shapeCreation)
      • getCx

        public int getCx()
      • setCx

        public void setCx​(int cx)
      • getCy

        public int getCy()
      • setCy

        public void setCy​(int cy)
      • getFill

        public Colours getFill()
      • setFill

        public void setFill​(java.lang.String fill)
      • getLog

        public java.util.logging.Logger getLog()
      • setLog

        public void setLog​(java.util.logging.Logger log)
      • getRx

        public int getRx()
      • setRx

        public void setRx​(int rx)
      • getRy

        public int getRy()
      • setRy

        public void setRy​(int ry)
      • getStroke_width

        public int getStroke_width()
      • setStroke_width

        public void setStroke_width​(int stroke_width)
      • setFill

        public void setFill​(Colours fill)
      • getStroke

        public Colours getStroke()
      • setStroke

        public void setStroke​(Colours stroke)
      • getText

        public java.lang.String getText()
      • setText

        public void setText​(java.lang.String text)