scalafx.scene.canvas

GraphicsContext

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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def appendSVGPath(svgpath: String): Unit

    Appends an SVG Path string to the current path.

  7. def applyEffect(e: Effect): Unit

    Applies the given effect to the entire canvas.

  8. 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.

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

    Adds segments to the current path to make an arc.

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def beginPath(): Unit

    Starts a Path

  12. 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.

  13. def canvas: javafx.scene.canvas.Canvas

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

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

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

  15. def clip(): Unit

    Clips using the current path

  16. def clone(): AnyRef

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

    Closes the path.

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

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

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

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

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

  21. 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.

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

    Definition Classes
    AnyRef
  23. 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
  24. def fill: Paint

    the current fill attribute.

  25. 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.

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

    Fills an oval using the current fill paint.

  27. 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.

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

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

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

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

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

    Fills a rectangle using the current fill paint.

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

    Fills a rounded rectangle using the current fill paint.

  32. def fillRule: FillRule

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

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

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

    Fills text and includes a maximum width of the string.

  35. 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.

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

  37. def finalize(): Unit

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

    the current Font.

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

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

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

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

  42. def getTransform(xform: Affine): Affine

    Returns a copy of the current transform.

  43. def getTransform: Affine

    Returns a copy of the current transform.

  44. def globalAlpha: Double

    the current global alpha.

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

  46. def globalBlendMode: BlendMode

    the global blend mode.

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

  48. def hashCode(): Int

    returns

    The delegate hashcode

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

    Definition Classes
    Any
  50. def lineCap: StrokeLineCap

    the current stroke line cap.

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

  52. def lineJoin: StrokeLineJoin

    the current stroke line join.

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

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

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

  55. def lineWidth: Double

    the current line width.

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

  57. def miterLimit: Double

    the current miter limit.

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

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

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

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

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

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

    Definition Classes
    AnyRef
  63. def pixelWriter: PixelWriter

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

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

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

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

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

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

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

  67. 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.

  68. def rotate(degrees: Double): Unit

    Rotates the current transform in degrees.

  69. def save(): Unit

    Saves the following attributes onto a stack.

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

    Scales the current transform by x, y.

  71. def setEffect(e: Effect): Unit

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

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

    Sets the current transform.

  73. def setTransform(xform: Affine): Unit

    Sets the current transform.

  74. def stroke: Paint

    the current stroke.

  75. 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.

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

    Strokes a line using the current stroke paint.

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

    Strokes a rectangle using the current stroke paint.

  78. 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.

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

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

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

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

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

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

  82. 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.

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

    Strokes a rectangle using the current stroke paint.

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

    Strokes a rounded rectangle using the current stroke paint.

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

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

  86. 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.

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

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

    Definition Classes
    AnyRef
  89. def textAlign: TextAlignment

    the current TextAlignment.

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

  91. def textBaseline: VPos

    the current Text Baseline.

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

  93. def toString(): String

    returns

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

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

    Concatenates the input with the current transform.

  95. def transform(xform: Affine): Unit

    Concatenates the input with the current transform.

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

    Translates the current transform by x, y.

  97. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. 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