RectangleDrawImp

ostrat.geom.RectangleDraw.RectangleDrawImp
case class RectangleDrawImp(shape: Rectangle, lineWidth: Double, lineColour: Colour) extends RectangleDraw

Immutable Graphic element that defines and draws a Polygon.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait CentredElem
trait WithCentre
trait PolygonDraw
trait CanvElem
trait ShapeDraw
trait ShapeGraphic
trait BoundedElem
trait GraphicElem
trait GeomElem
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def rendToCanvas(cp: CanvasPlatform): Unit

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 methods

final override def attribs: RArr[XmlAtt]

Attributes

Definition Classes
Inherited from:
ShapeGraphicSimple

Attributes

Inherited from:
BoundedElem
final def boundCen: Pt2

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

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

Attributes

Inherited from:
BoundedElem

Attributes

Inherited from:
BoundedElem
final override def boundingHeight: Double

The height of the BoundingRect of this object.

The height of the BoundingRect of this object.

Attributes

Definition Classes
Inherited from:
ShapeGraphic
final override def boundingRect: Rect

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
final override def boundingWidth: Double

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
override def cen: Pt2

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

Attributes

Definition Classes
Inherited from:
CentredElem
override def cenX: Double

The X component of the centre.

The X component of the centre.

Attributes

Definition Classes
Inherited from:
ShapeGraphicCentred
override def cenY: Double

The Y component of the centre.

The Y component of the centre.

Attributes

Definition Classes
Inherited from:
ShapeGraphicCentred
def ifv2: Boolean

Checks for 2 or more vertices

Checks for 2 or more vertices

Attributes

Inherited from:
PolygonGraphic
def ifv3: Boolean

Checks for 3 or more vertices

Checks for 3 or more vertices

Attributes

Inherited from:
PolygonGraphic
override def negX: RectangleDraw

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def negY: RectangleDraw

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def nonShapeAttribs: RArr[XmlAtt]

Attributes

Definition Classes
Inherited from:
ShapeDraw

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def prolign(matrix: ProlignMatrix): RectangleDraw

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def reflect(lineLike: LineLike): RectangleDraw

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Mirror, reflection transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def rotate(angle: AngleVec): RectangleDraw

Mirror, rotate(radians) transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Mirror, rotate(radians) transformation across the X axis upon a RectangleDraw returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def rotate180: RectangleDraw

Rotation positive or anti clockwise 180 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 180 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def rotate270: RectangleDraw

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def rotate90: RectangleDraw

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def scale(operand: Double): RectangleDraw

Uniform scaling transformation a RectangleDraw, returns a RectangleDraw.

Uniform scaling transformation a RectangleDraw, returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw
override def scaleXY(xOperand: Double, yOperand: Double): RectangleDraw

Independent X and Y dimension scaling upon a RectangleDraw returns a RectangleDraw.

Independent X and Y dimension scaling upon a RectangleDraw returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw

Attributes

Inherited from:
ShapeGraphic
override def shearX(operand: Double): PolygonDraw

Shear along the X axis upon a PolygonDraw returns a PolygonDraw.

Shear along the X axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def shearY(operand: Double): PolygonDraw

Shear along the Y axis upon a PolygonDraw returns a PolygonDraw.

Shear along the Y axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def slateXY(xDelta: Double, yDelta: Double): RectangleDraw

Translate geometric transformation on a RectangleDraw, returns a RectangleDraw.

Translate geometric transformation on a RectangleDraw, returns a RectangleDraw.

Attributes

Definition Classes
Inherited from:
RectangleDraw

Attributes

Inherited from:
ShapeDraw

Attributes

Inherited from:
ShapeDraw
override def svgElem: SvgElem

Attributes

Definition Classes
Inherited from:
PolygonGraphicSimple
override def svgElems: RArr[SvgElem]

Attributes

Definition Classes
Inherited from:
GraphicSvgElem
final def svgInline: HtmlSvg

Attributes

Inherited from:
ShapeGraphicSimple
final def svgInlineStr: String

Attributes

Inherited from:
ShapeGraphic
final def svgJustElem: SvgElem

Attributes

Inherited from:
ShapeGraphicSimple

Attributes

Inherited from:
BoundedElem
def vertsFoldLeft[B](init: B)(f: (B, Pt2) => B): B

Attributes

Inherited from:
PolygonGraphic
def vertsFoldLeft[B](f: (B, Pt2) => B)(implicit default: DefaultValue[B]): B

Attributes

Inherited from:
PolygonGraphic
def vertsForeach(f: Pt2 => Unit): Unit

Attributes

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

Attributes

Inherited from:
PolygonGraphic
def vertsNum: Int

The number of vertices.

The number of vertices.

Attributes

Inherited from:
PolygonGraphic
def x1: Double

Attributes

Inherited from:
PolygonGraphic

Attributes

Inherited from:
PolygonGraphic
def y1: Double

Attributes

Inherited from:
PolygonGraphic

Attributes

Inherited from:
PolygonGraphic