ShapeFactory

interface ShapeFactory<in T : ShapeParameters>

A ShapeFactory is responsible for creating a single kind of shape (like a rectangle or a triangle) using a specialized version of ShapeParameters.

Functions

createShape
Link copied to clipboard
common
abstract fun createShape(shapeParameters: T): Shape
Creates the Shape this ShapeFactory is responsible for building.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Inheritors

EllipseFactory
Link copied to clipboard
FilledRectangleFactory
Link copied to clipboard
FilledTriangleFactory
Link copied to clipboard
LineFactory
Link copied to clipboard
RectangleFactory
Link copied to clipboard
TriangleFactory
Link copied to clipboard

Sources

(source)
Link copied to clipboard