Textlign

ostrat.geom.Textlign
See theTextlign companion object
final case class Textlign(str: String, fontSize: Double, xPosn: Double, yPosn: Double, colour: Colour, textAlign: TextAlign, baseLine: BaseLine) extends TextGraphic

A text Graphic aligned with the X and Y axes, but with a scaled font.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TextGraphic
trait CanvElem
trait GraphicElem
trait GeomElem
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

type ThisT = Textlign

Value members

Concrete methods

override def negX: Textlign

Mirror, reflection 2D geometric transformation across the X axis on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Mirror, reflection 2D geometric transformation across the X axis on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def negY: Textlign

Mirror, reflection 2D geometric transformation across the X axis on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Mirror, reflection 2D geometric transformation across the X axis on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Attributes

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

2D geometric transformation using a ProlignMatrix on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

2D geometric transformation using a ProlignMatrix on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Attributes

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

Reflect 2D geometric transformation across a line, line segment or ray on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Reflect 2D geometric transformation across a line, line segment or ray on a TextAligned, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def rotate(angle: AngleVec): Textlign

Rotation 2D geometric transformation on a TextAligned taking the rotation as a scalar measured in radians, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Rotation 2D geometric transformation on a TextAligned taking the rotation as a scalar measured in radians, returns a TextAligned. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def rotate180: Textlign

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

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

Attributes

Definition Classes
override def rotate270: Textlign

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

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

Attributes

Definition Classes
override def rotate90: Textlign

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

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

Attributes

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

Uniform scaling 2D geometric transformation on this Textlign, returns a TextAligned. Scales the font size as well as the x and y positions.

Uniform scaling 2D geometric transformation on this Textlign, returns a TextAligned. Scales the font size as well as the x and y positions.

Attributes

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

XY scaling 2D geometric transformation on a TextAligned, returns a GrpahicElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

XY scaling 2D geometric transformation on a TextAligned, returns a GrpahicElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
override def shearX(operand: Double): Textlign

Shear 2D geometric transformation along the X Axis on a TextAligned, returns a TextAligned. The return type will be narrowed in sub classes and traits.

Shear 2D geometric transformation along the X Axis on a TextAligned, returns a TextAligned. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
override def shearY(operand: Double): Textlign

Shear 2D geometric transformation along the Y Axis on a TextAligned, returns a TextAligned. The return type will be narrowed in sub classes and traits.

Shear 2D geometric transformation along the Y Axis on a TextAligned, returns a TextAligned. The return type will be narrowed in sub classes and traits.

Attributes

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

Translate 2D geometric transformation on this Textlign.

Translate 2D geometric transformation on this Textlign.

Attributes

Definition Classes
override def svgElems: RArr[SvgElem]

Attributes

Definition Classes

Inherited methods

def posn: Pt2

Attributes

Inherited from:
TextGraphic

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
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 from:
TextGraphic