Class AbstractShapeGenerator

    • Constructor Detail

      • AbstractShapeGenerator

        public AbstractShapeGenerator()
    • Method Detail

      • check

        protected String check()
        Hook method for checks.
        Returns:
        null if checks passed successful, otherwise error message
      • doGenerate

        protected abstract Shape doGenerate()
        Generates the shape.
        Returns:
        the shape, null if none generated
      • generate

        public Shape generate()
        Generates the shape.
        Returns:
        the shape, null if none generated
        Throws:
        IllegalStateException - if checks fail
        See Also:
        check()