Graphic that draws a rectangle.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait RectangleGraphicSimpletrait RectangleGraphictrait ShapeGraphicCentredtrait CentredElemtrait WithCentretrait PolygonDrawtrait CanvShapeDrawtrait CanvElemtrait ShapeDrawtrait ShapeGeomlessDrawtrait PolygonGraphicSimpletrait ShapeGraphicSimpletrait GraphicSvgElemtrait GraphicSimpletrait Aff2Elemtrait Simil2Elemtrait PolygonGraphictrait ShapeGraphictrait GraphicBoundedtrait BoundedElemtrait Graphic2Elemtrait Axlign2Elemclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Value members
Concrete methods
Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.
Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Mirror, reflection 2D geometric transformation across the X axis by negating y. The return type will be narrowed in sub traits / classes.
Mirror, reflection 2D geometric transformation across the X axis by negating y. The return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
2D Transformation using a AxlignMatrix. The return type will be narrowed in subclasses / traits.
2D Transformation using a AxlignMatrix. The return type will be narrowed in subclasses / traits.
Attributes
- Definition Classes
-
PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in subclasses and traits.
Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
PolygonDraw -> CanvShapeDraw -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> Simil2Elem
Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in subclasses and traits.
Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
PolygonDraw -> CanvShapeDraw -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> Simil2Elem
Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Rotation positive or anti-clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Rotation positive or anti-clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Rotation positive or anti-clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Rotation positive or anti-clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Uniform 2D geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling. The Return type will be narrowed in sub traits / classes.
Uniform 2D geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling. The Return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> RectangleGraphic -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Scaling X and Y axes independently, 2D geometric transformation on this Aff2Elem, returns a new Aff2Elem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Scaling X and Y axes independently, 2D geometric transformation on this Aff2Elem, returns a new Aff2Elem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Attributes
- Definition Classes
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> RectangleGraphic -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Attributes
- Definition Classes
-
RectangleGraphicSimple -> RectangleGraphic -> PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
Inherited methods
Attributes
- Definition Classes
- Inherited from:
- ShapeGraphicSimple
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- BoundedElem
The centre of the bounding rectangle. consider also using cenDefault.
The centre of the bounding rectangle. consider also using cenDefault.
Attributes
- Inherited from:
- BoundedElem
The height of the BoundingRect of this object.
The height of the BoundingRect of this object.
Attributes
- Definition Classes
- Inherited from:
- ShapeGraphic
The bounding Rectangle provides an initial exclusion test, as to whether the pointer is inside the polygon / shape
The bounding Rectangle provides an initial exclusion test, as to whether the pointer is inside the polygon / shape
Attributes
- Definition Classes
- Inherited from:
- ShapeGraphic
The width of the BoundingRect of this object.
The width of the BoundingRect of this object.
Attributes
- Definition Classes
- Inherited from:
- ShapeGraphic
Attributes
- Inherited from:
- BoundedElem
The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.
The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.
Attributes
- Definition Classes
- Inherited from:
- ShapeGraphicCentred
The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.
The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.
Attributes
- Definition Classes
- Inherited from:
- CentredElem
The X component of the centre.
The Y component of the centre.
Checks for 2 or more vertices
Checks for 3 or more vertices
Attributes
- Definition Classes
- Inherited from:
- ShapeDraw
Renders this functional immutable GraphicElem, using the imperative methods of the abstract pCanv.CanvasPlatform interface.
Renders this functional immutable GraphicElem, using the imperative methods of the abstract pCanv.CanvasPlatform interface.
Attributes
- Definition Classes
- Inherited from:
- PolygonDraw
Attributes
- Inherited from:
- ShapeGraphic
Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- PolygonDraw
Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- PolygonDraw
Translate 2D geometric transformation in the X dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Translate 2D geometric transformation in the X dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Attributes
- Definition Classes
-
PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
- Inherited from:
- PolygonDraw
Translate 2D geometric transformation in the Y dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Translate 2D geometric transformation in the Y dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Attributes
- Definition Classes
-
PolygonDraw -> CanvShapeDraw -> CanvElem -> PolygonGraphicSimple -> ShapeGraphicSimple -> GraphicSimple -> Aff2Elem -> PolygonGraphic -> ShapeGraphic -> GraphicBounded -> Graphic2Elem -> Axlign2Elem
- Inherited from:
- PolygonDraw
Attributes
- Inherited from:
- ShapeDraw
Attributes
- Inherited from:
- ShapeDraw
Attributes
- Definition Classes
- Inherited from:
- PolygonGraphicSimple
Attributes
- Definition Classes
- Inherited from:
- GraphicSvgElem
Attributes
- Inherited from:
- ShapeGraphicSimple
Attributes
- Inherited from:
- ShapeGraphic
Attributes
- Inherited from:
- ShapeGraphicSimple
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- PolygonGraphic
Attributes
- Inherited from:
- PolygonGraphic
Attributes
- Inherited from:
- PolygonGraphic
Attributes
- Inherited from:
- PolygonGraphic
The number of vertices.
Attributes
- Inherited from:
- PolygonGraphic
Attributes
- Inherited from:
- PolygonGraphic
Attributes
- Inherited from:
- PolygonGraphic
Attributes
- Inherited from:
- PolygonGraphic
Inherited and Abstract methods
The line colour of this draw graphic.
The line width of this draw graphic
Attributes
- Definition Classes
- Inherited from:
- RectangleGraphic