RectCompound

case class RectCompound(shape: Rect, facets: Arr[GraphicFacet], children: Arr[GraphicElem]) extends RectGraphic with RectangleCompound

This is a compound graphic based on a Rect shape. A rectangle aligned to the X and Y axes.

Companion:
object
trait Serializable
trait Product
trait Equals
trait GeomElem
class Object
trait Matchable
class Any

Value members

Concrete methods

override def negX: RectCompound

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Definition Classes
override def negY: RectCompound

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Definition Classes
override def scale(operand: Double): RectCompound

Uniform 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.

Uniform 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.

Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): RectCompound

Translate geometric transformation.

Translate geometric transformation.

Definition Classes
override def svgStr: String

Inherited methods

Inherited from:
PolygonCompound
override def attribs: Arr[XmlAtt]
Definition Classes
Inherited from:
RectangleCompound
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
override def bottomLeft: Pt2
override def bottomRight: Pt2
final def boundCen: Pt2

The centre of the bounding rectangle. consider also using cenDefault.

The centre of the bounding rectangle. consider also using cenDefault.

Inherited from:
BoundedElem
Inherited from:
BoundedElem
Definition Classes
Inherited from:
PolygonGraphic

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Inherited from:
BoundedElem
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
override def canvElems: Arr[CanvElem]
Definition Classes
Inherited from:
PolygonCompound
override def cen: Pt2
Definition Classes
Inherited from:
ShapeGraphicCentred
final override def cenDefault: Pt2

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.

Definition Classes
Inherited from:
CentredElem
override def cenX: Double
Definition Classes
Inherited from:
ShapeGraphicCentred
override def cenY: Double
Definition Classes
Inherited from:
ShapeGraphicCentred
def foreachVert(f: Pt2 => Unit): Unit
Inherited from:
PolygonGraphic

Checks for 2 or more vertices

Checks for 2 or more vertices

Inherited from:
PolygonGraphic

Checks for 3 or more vertices

Checks for 3 or more vertices

Inherited from:
PolygonGraphic
Inherited from:
Product
override def rendToCanvas(cp: CanvasPlatform): Unit
Definition Classes
Inherited from:
PolygonCompound
Inherited from:
ShapeGraphic
override def shearX(operand: Double): PolygonCompound
override def shearY(operand: Double): PolygonCompound
final def svgInline: String
Inherited from:
ShapeGraphic
final def svgJustElem: SvgElem
Inherited from:
ShapeGraphic
def svgOut(indent: Int, linePosn: Int, lineLen: Int): String
Inherited from:
ShapeGraphic
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
override def topLeft: Pt2
override def topRight: Pt2
Inherited from:
BoundedElem

Top right offset from centre.

Top right offset from centre.

Inherited from:
OrdinalEdgePoints
def vertsMap[A, ArrT <: SeqImut[A]](f: Pt2 => A)(implicit build: ArrBuilder[A, ArrT]): ArrT
Inherited from:
PolygonGraphic

The number of vertices.

The number of vertices.

Inherited from:
PolygonGraphic
def x1: Double
Inherited from:
PolygonGraphic
def y1: Double
Inherited from:
PolygonGraphic