CGMDisplay class

The CGMDisplay class is used to store the current state of the painting process.

Constructors

CGMDisplay(CGM cgm)
Creates a new instance of the CGMDisplay class.

Properties

additionalCharacterSpace double
getter/setter pair
canvas CGMCanvas
The CGMCanvas object to paint the CGM class' commands.
no setter
cgm CGM
no setter
characterHeight double
getter/setter pair
clipFlag bool
no setter
continuousHorizontalAlignment double
no setter
continuousVerticalAlignment double
no setter
currentApplicationStructure BeginApplicationStructure?
getter/setter pair
currentCGMPaintHolder CGMPaintHolder?
no setter
currentFigure BeginFigure?
getter/setter pair
currentPolyBezier List<PolyBezier>
getter/setter pair
drawEdge bool
no setter
edgeColor Color
no setter
edgePaint CGMPaint?
getter/setter pair
edgeWidth double
no setter
extent List<Vector2>
no setter
fillColor Color
no setter
fillPaint CGMPaint?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
horizontalTextAlignment HorizontalAlignment
no setter
interiorStyle InteriorStyleStyle
no setter
isBeforeBeginPicture bool
no setter
isFilled bool
no setter
isScaled bool
no setter
isTransparent bool
no setter
isViewCleared bool
no setter
isWithinApplicationStructureBody bool
getter/setter pair
lineColor Color
no setter
lineDashes HashMap<int, List<double>>
latefinal
linePaint CGMPaint?
getter/setter pair
lineWidth double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color?
getter/setter pair
verticalTextAlignment VerticalAlignment
no setter

Methods

addLineType(int lineType, List<int> dashElements, double dashCycleRepeatLength) → void
endApplicationStructure() → void
fillColorOf(FillColor fillColor) Color
getIndexedColor(int index) Color
lineColorOf(LineColor lineColor) Color
newApplicationStructure(BeginApplicationStructure applicationStructure) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(CGMCanvas canvas) → void
Paints the CGM class' commands to the given canvas.
reachedPictureBody() → void
reset([bool initial = false]) → void
scale(double width, double height) → void
setCurrentEdgeColor(EdgeColor edgeColor) → void
setCurrentEdgeWidth(EdgeWidth edgeWidth) → void
setCurrentFillColor(FillColor fillColor) → void
setCurrentLineColor(LineColor lineColor) → void
setCurrentLineWidth(LineWidth lineWidth) → void
setEdge({Color? color, int? index, double? width, StrokeJoin? strokeJoin}) → void
setFillColor({Color? color, int? index}) → void
setFlag({bool? filled, bool? drawEdge, bool? transparent, bool? clip}) → void
setHatchStyle(HatchType type) → void
setIndexedColor(int index, Color color) → void
setInteriorStyle(InteriorStyleStyle style) → void
setLine({Color? color, int? index, double? width, StrokeCap? strokeCap, StrokeJoin? strokeJoin}) → void
setTextAlignment({required HorizontalAlignment horizontal, required VerticalAlignment vertical, required double continuousHorizontal, required double continuousVertical}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited