# AbstractTGraphics

abstract class AbstractTGraphics : TGraphics

#### Inheritors

CanvasRenderingContext2DTGraphics
ComposeTGraphics

## Constructors

AbstractTGraphics
Link copied to clipboard
constructor()

## Types

Companion
Link copied to clipboard
object Companion

## Properties

background
Link copied to clipboard
abstract var background: MkColor
colorFactory
Link copied to clipboard
abstract val colorFactory: MkColorFactory
font
Link copied to clipboard
abstract var font: MkFont
iGraphics
Link copied to clipboard
abstract val iGraphics: IGraphics
isAntialias
Link copied to clipboard
abstract var isAntialias: Boolean
isInterpolationBilinear
Link copied to clipboard
abstract var isInterpolationBilinear: Boolean
isPaintingForPrint
Link copied to clipboard
abstract var isPaintingForPrint: Boolean
isTextAntialias
Link copied to clipboard
abstract var isTextAntialias: Boolean
nativeGraphics
Link copied to clipboard
abstract val nativeGraphics: Any?
transform
Link copied to clipboard
abstract var transform: AffineTransform?

## Functions

clearRect
Link copied to clipboard
abstract fun clearRect(x: Int, y: Int, width: Int, height: Int)
clip
Link copied to clipboard
abstract fun clip(s: Shape?)
createImage
Link copied to clipboard
abstract fun createImage(width: Int, height: Int): CPImage?
drawArc
Link copied to clipboard
abstract fun drawArc(x: Int, y: Int, width: Int, height: Int, startAngle: Int, arcAngle: Int)
drawClippedImage
Link copied to clipboard
open override fun drawClippedImage(img: CPImage?, x: Int, y: Int, w: Int, h: Int, width: Int, height: Int, bounds: Rectangle?, shape: Shape?): Boolean
drawImage
Link copied to clipboard
abstract fun drawImage(img: CPImage?, x: Int, y: Int): Boolean
drawImageStretch
Link copied to clipboard
abstract fun drawImageStretch(img: CPImage?, x: Int, y: Int, w: Int, h: Int): Boolean
drawOval
Link copied to clipboard
abstract fun drawOval(x: Int, y: Int, width: Int, height: Int)
drawPolygon
Link copied to clipboard
abstract fun drawPolygon(xPoints: IntArray?, yPoints: IntArray?, nPoints: Int)
drawPolyline
Link copied to clipboard
abstract fun drawPolyline(xPoints: IntArray?, yPoints: IntArray?, nPoints: Int)
fill
Link copied to clipboard
abstract fun fill(s: Shape?)
fillArc
Link copied to clipboard
abstract fun fillArc(x: Int, y: Int, width: Int, height: Int, startAngle: Int, arcAngle: Int)
fillOval
Link copied to clipboard
abstract fun fillOval(x: Int, y: Int, width: Int, height: Int)
fillPolygon
Link copied to clipboard
abstract fun fillPolygon(xPoints: IntArray?, yPoints: IntArray?, nPoints: Int)
fillRect
Link copied to clipboard
abstract fun fillRect(x: Double, y: Double, width: Double, height: Double)
fillRoundRect
Link copied to clipboard
abstract fun fillRoundRect(x: Double, y: Double, width: Double, height: Double, arcWidth: Double, arcHeight: Double)
fillText
Link copied to clipboard
abstract fun fillText(str: String?, x: Float, y: Float)
findMaxFontSize
Link copied to clipboard
open override fun findMaxFontSize(elabel: EnhancedLabel?, font: MkFont?, maxWidth: Double): Double
fitTextInsideRectangle
Link copied to clipboard
open override fun fitTextInsideRectangle(elabel: EnhancedLabel?, pf: PreferredSize?, font: MkFont?, bounds: Rectangle2D?, scaleFactor: Double, expand: Boolean): Double
getStringWidth
Link copied to clipboard
abstract fun getStringWidth(text: String?): Double
hitClip
Link copied to clipboard
open override fun hitClip(bounds: Rectangle?): Boolean
paintLabel
Link copied to clipboard
abstract fun paintLabel(l: EnhancedLabel, x: Int, y: Int, w: Int, h: Int)
restore
Link copied to clipboard
abstract fun restore()
rotate
Link copied to clipboard
abstract fun rotate(theta: Double)
rotateTranslate
Link copied to clipboard
abstract fun rotateTranslate(theta: Double, x: Double, y: Double)
save
Link copied to clipboard
abstract fun save()
scale
Link copied to clipboard
abstract fun scale(sx: Double, sy: Double)
setColor
Link copied to clipboard
abstract fun setColor(c: MkColor?)
setFill
Link copied to clipboard
abstract fun setFill(c: MkColor?)
setGlobalAlpha
Link copied to clipboard
abstract fun setGlobalAlpha(alpha: Double)
setLineDash
Link copied to clipboard
abstract fun setLineDash(dashPattern: DoubleArray?)
setLineWidth
Link copied to clipboard
abstract fun setLineWidth(lw: Double)
setRadialGradient
Link copied to clipboard
abstract fun setRadialGradient()
setStroke
Link copied to clipboard
abstract fun setStroke(c: MkColor?)
shear
Link copied to clipboard
abstract fun shear(shx: Double, shy: Double)
sizeLabel
Link copied to clipboard
abstract fun sizeLabel(l: EnhancedLabel, w: Int, h: Int): PreferredSize
softClip
Link copied to clipboard
open override fun softClip(shape: Shape?)
stroke
Link copied to clipboard
abstract fun stroke(s: Shape?)
strokeLine
Link copied to clipboard
abstract fun strokeLine(x1: Int, y1: Int, x2: Int, y2: Int)
strokeRect
Link copied to clipboard
abstract fun strokeRect(x: Double, y: Double, width: Double, height: Double)
strokeRoundRect
Link copied to clipboard
abstract fun strokeRoundRect(x: Double, y: Double, width: Double, height: Double, arcWidth: Double, arcHeight: Double)
transform
Link copied to clipboard
abstract fun transform(t: AffineTransform?)
translate
Link copied to clipboard
abstract fun translate(tx: Double, ty: Double)