scalafx.scene.canvas

GraphicsContext

Related Docs: object GraphicsContext | package canvas

class GraphicsContext extends SFXDelegate[javafx.scene.canvas.GraphicsContext]

Wraps JavaFX GraphicsContext

Source
GraphicsContext.scala
Linear Supertypes
SFXDelegate[javafx.scene.canvas.GraphicsContext], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GraphicsContext
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GraphicsContext(delegate: javafx.scene.canvas.GraphicsContext)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def appendSVGPath(svgpath: String): Unit

    Appends an SVG Path string to the current path.

  5. def applyEffect(e: Effect): Unit

    Applies the given effect to the entire canvas.

  6. def arc(centerX: Double, centerY: Double, radiusX: Double, radiusY: Double, startAngle: Double, length: Double): Unit

    Adds path elements to the current path to make an arc that uses Euclidean degrees.

  7. def arcTo(x1: Double, y1: Double, x2: Double, y2: Double, radius: Double): Unit

    Adds segments to the current path to make an arc.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def beginPath(): Unit

    Starts a Path

  10. def bezierCurveTo(xc1: Double, yc1: Double, xc2: Double, yc2: Double, x1: Double, y1: Double): Unit

    Adds segments to the current path to make a cubic bezier curve.

  11. def canvas: javafx.scene.canvas.Canvas

    Gets the Canvas that the GraphicsContext is issuing draw commands to.

  12. def clearRect(x: Double, y: Double, w: Double, h: Double): Unit

    Clears a portion of the canvas with a transparent color value.

  13. def clip(): Unit

    Clips using the current path

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def closePath(): Unit

    Closes the path.

  16. val delegate: javafx.scene.canvas.GraphicsContext

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    GraphicsContextSFXDelegate
  17. def drawImage(img: Image, sx: Double, sy: Double, sw: Double, sh: Double, dx: Double, dy: Double, dw: Double, dh: Double): Unit

    Draws the current source rectangle of the given image to the given destination rectangle of the Canvas.

  18. def drawImage(img: Image, x: Double, y: Double, w: Double, h: Double): Unit

    Draws an image into the given destination rectangle of the canvas.

  19. def drawImage(img: Image, x: Double, y: Double): Unit

    Draws an image at the given x, y position using the width and height of the given image.

  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(ref: Any): Boolean

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    Definition Classes
    SFXDelegate → AnyRef → Any
  22. def fill: Paint

    the current fill attribute.

  23. def fillArc(x: Double, y: Double, w: Double, h: Double, startAngle: Double, arcExtent: Double, closure: ArcType): Unit

    Fills an arc using the current fill paint.

  24. def fillOval(x: Double, y: Double, w: Double, h: Double): Unit

    Fills an oval using the current fill paint.

  25. def fillPath(): Unit

    Fills the path with the current fill paint.

    Fills the path with the current fill paint. This method is correspondent to fill() method in JavaFx class.

  26. def fillPolygon(points: Seq[(Double, Double)]): Unit

    Fills a polygon with the given points using the currently set fill paint.

  27. def fillPolygon(xPoints: Array[Double], yPoints: Array[Double], nPoints: Int): Unit

    Fills a polygon with the given points using the currently set fill paint.

  28. def fillRect(x: Double, y: Double, w: Double, h: Double): Unit

    Fills a rectangle using the current fill paint.

  29. def fillRoundRect(x: Double, y: Double, w: Double, h: Double, arcWidth: Double, arcHeight: Double): Unit

    Fills a rounded rectangle using the current fill paint.

  30. def fillRule: FillRule

    the filling rule constant for determining the interior of the path.

  31. def fillRule_=(fillRule: FillRule): Unit

  32. def fillText(text: String, x: Double, y: Double, maxWidth: Double): Unit

    Fills text and includes a maximum width of the string.

  33. def fillText(text: String, x: Double, y: Double): Unit

    Fills the given string of text at position x, y (0,0 at top left) with the current fill paint attribute.

  34. def fill_=(p: Paint): Unit

  35. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def font: Font

    the current Font.

  37. def font_=(f: Font): Unit

  38. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  39. def getEffect(e: Effect): Effect

    Gets a copy of the effect to be applied after the next draw call.

  40. def getTransform(xform: Affine): Affine

    Returns a copy of the current transform.

  41. def getTransform: Affine

    Returns a copy of the current transform.

  42. def globalAlpha: Double

    the current global alpha.

  43. def globalAlpha_=(alpha: Double): Unit

  44. def globalBlendMode: BlendMode

    the global blend mode.

  45. def globalBlendMode_=(op: BlendMode): Unit

  46. def hashCode(): Int

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  47. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  48. def lineCap: StrokeLineCap

    the current stroke line cap.

  49. def lineCap_=(cap: StrokeLineCap): Unit

  50. def lineJoin: StrokeLineJoin

    the current stroke line join.

  51. def lineJoin_=(join: StrokeLineJoin): Unit

  52. def lineTo(x1: Double, y1: Double): Unit

    Adds segments to the current path to make a line at the given x,y coordinate.

  53. def lineWidth: Double

    the current line width.

  54. def lineWidth_=(lw: Double): Unit

  55. def miterLimit: Double

    the current miter limit.

  56. def miterLimit_=(ml: Double): Unit

  57. def moveTo(x0: Double, y0: Double): Unit

    Issues a move command for the current path to the given x,y coordinate.

  58. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  59. final def notify(): Unit

    Definition Classes
    AnyRef
  60. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  61. def pixelWriter: PixelWriter

    Returns a PixelWriter object that can be used to modify the pixels of the Canvas associated with this GraphicsContext.

  62. def pointInPath(x: Double, y: Double): Boolean

    Returns true if the the given x,y point is inside the path.

  63. def quadraticCurveTo(xc: Double, yc: Double, x1: Double, y1: Double): Unit

    Adds segments to the current path to make a quadratic curve.

  64. def rect(x: Double, y: Double, w: Double, h: Double): Unit

    Adds path elements to the current path to make a rectangle.

  65. def restore(): Unit

    Pops the state off of the stack, setting the following attributes to their value at the time when that state was pushed onto the stack.

  66. def rotate(degrees: Double): Unit

    Rotates the current transform in degrees.

  67. def save(): Unit

    Saves the following attributes onto a stack.

  68. def scale(x: Double, y: Double): Unit

    Scales the current transform by x, y.

  69. def setEffect(e: Effect): Unit

    Sets the effect to be applied after the next draw call, or null to disable effects.

  70. def setTransform(mxx: Double, myx: Double, mxy: Double, myy: Double, mxt: Double, myt: Double): Unit

    Sets the current transform.

  71. def setTransform(xform: Affine): Unit

    Sets the current transform.

  72. def stroke: Paint

    the current stroke.

  73. def strokeArc(x: Double, y: Double, w: Double, h: Double, startAngle: Double, arcExtent: Double, closure: ArcType): Unit

    Strokes an Arc using the current stroke paint.

  74. def strokeLine(x1: Double, y1: Double, x2: Double, y2: Double): Unit

    Strokes a line using the current stroke paint.

  75. def strokeOval(x: Double, y: Double, w: Double, h: Double): Unit

    Strokes a rectangle using the current stroke paint.

  76. def strokePath(): Unit

    Strokes the path with the current stroke paint.

    Strokes the path with the current stroke paint. This method is correspondent to stroke() method in JavaFx class.

  77. def strokePolygon(points: Seq[(Double, Double)]): Unit

    Strokes a polygon with the given points using the currently set stroke paint.

  78. def strokePolygon(xPoints: Array[Double], yPoints: Array[Double], nPoints: Int): Unit

    Strokes a polygon with the given points using the currently set stroke paint.

  79. def strokePolyline(points: Seq[(Double, Double)]): Unit

    Draws a polyline with the given points using the currently set stroke paint attribute.

  80. def strokePolyline(xPoints: Array[Double], yPoints: Array[Double], nPoints: Int): Unit

    Draws a polyline with the given points using the currently set stroke paint attribute.

  81. def strokeRect(x: Double, y: Double, w: Double, h: Double): Unit

    Strokes a rectangle using the current stroke paint.

  82. def strokeRoundRect(x: Double, y: Double, w: Double, h: Double, arcWidth: Double, arcHeight: Double): Unit

    Strokes a rounded rectangle using the current stroke paint.

  83. def strokeText(text: String, x: Double, y: Double, maxWidth: Double): Unit

    Draws text with stroke paint and includes a maximum width of the string.

  84. def strokeText(text: String, x: Double, y: Double): Unit

    draws the given string of text at position x, y (0,0 at top left) with the current stroke paint attribute.

  85. def stroke_=(s: Paint): Unit

  86. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  87. def textAlign: TextAlignment

    the current TextAlignment.

  88. def textAlign_=(align: TextAlignment): Unit

  89. def textBaseline: VPos

    the current Text Baseline.

  90. def textBaseline_=(baseline: VPos): Unit

  91. def toString(): String

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

    Definition Classes
    SFXDelegate → AnyRef → Any
  92. def transform(mxx: Double, myx: Double, mxy: Double, myy: Double, mxt: Double, myt: Double): Unit

    Concatenates the input with the current transform.

  93. def transform(xform: Affine): Unit

    Concatenates the input with the current transform.

  94. def translate(x: Double, y: Double): Unit

    Translates the current transform by x, y.

  95. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  96. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  97. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SFXDelegate[javafx.scene.canvas.GraphicsContext]

Inherited from AnyRef

Inherited from Any

Ungrouped