PolygonDraw

Immutable Graphic element that defines and draws a Polygon.

Companion
object
trait CanvElem
trait ShapeDraw
trait GeomElem
class Object
trait Matchable
class Any

Value members

Concrete methods

override def negX: PolygonDraw

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

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

Definition Classes
override def negY: PolygonDraw

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

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

Definition Classes
override def prolign(matrix: ProlignMatrix): PolygonDraw

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

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

Definition Classes
override def reflect(lineLike: LineLike): PolygonDraw

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

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

Definition Classes
override def rendToCanvas(cp: CanvasPlatform): Unit
Definition Classes
override def rotate(angle: AngleVec): PolygonDraw

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

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

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

Uniform scaling transformation a PolygonDraw, returns a PolygonDraw.

Uniform scaling transformation a PolygonDraw, returns a PolygonDraw.

Definition Classes
override def scaleXY(xOperand: Double, yOperand: Double): PolygonDraw

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

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

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

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

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

Translate geometric transformation on a PolygonDraw, returns a PolygonDraw.

Translate geometric transformation on a PolygonDraw, returns a PolygonDraw.

Definition Classes

Inherited methods

final override def attribs: Arr[XmlAtt]
Definition Classes
Inherited from
ShapeGraphicSimple
Inherited from
BoundedElem
@inline
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
def boundingHeight: Double
Inherited from
BoundedElem
def boundingWidth: Double

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Inherited from
BoundedElem
Inherited from
BoundedElem

If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.

If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.

Inherited from
BoundedElem
@inline
def foreachVert(f: Pt2 => Unit): Unit
Inherited from
PolygonGraphic
def ifv2: Boolean

Checks for 2 or more vertices

Checks for 2 or more vertices

Inherited from
PolygonGraphic
def ifv3: Boolean

Checks for 3 or more vertices

Checks for 3 or more vertices

Inherited from
PolygonGraphic

The line colour of this draw graphic.

The line colour of this draw graphic.

Inherited from
ShapeDraw
def lineWidth: Double

The line width of this draw graphic

The line width of this draw graphic

Inherited from
ShapeDraw
override def nonShapeAttribs: Arr[XmlAtt]
Definition Classes
Inherited from
ShapeDraw
override def shape: Polygon
Definition Classes
Inherited from
PolygonGraphic
Inherited from
ShapeGraphic
override def svgElem(bounds: BoundingRect): SvgElem
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
def svgStr: String
Inherited from
PolygonGraphicSimple
Inherited from
BoundedElem
Inherited from
BoundedElem
@inline
def vertsMap[A, ArrT <: ArrImut[A]](f: Pt2 => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT
Inherited from
PolygonGraphic
def vertsNum: Int

The number of vertices.

The number of vertices.

Inherited from
PolygonGraphic
def x1: Double
Inherited from
PolygonGraphic
def xVertsArray: Array[Double]
Inherited from
PolygonGraphic
def y1: Double
Inherited from
PolygonGraphic
def yVertsArray: Array[Double]
Inherited from
PolygonGraphic