Class/Object

scalafx.scene.canvas

GraphicsContext

Related Docs: object GraphicsContext | package canvas

Permalink

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GraphicsContext
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

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

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

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

    Permalink

    Appends an SVG Path string to the current path.

  5. def applyEffect(e: Effect): Unit

    Permalink

    Applies the given effect to the entire canvas.

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

    Permalink

    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

    Permalink

    Adds segments to the current path to make an arc.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def beginPath(): Unit

    Permalink

    Starts a Path

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

  13. def clip(): Unit

    Permalink

    Clips using the current path

  14. def clone(): AnyRef

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

    Permalink

    Closes the path.

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

    Permalink

    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

    Permalink

    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

    Permalink

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

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

    Permalink

    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

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

    Permalink

    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

    Permalink

    the current fill attribute.

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

    Permalink

    Fills an arc using the current fill paint.

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

    Permalink

    Fills an oval using the current fill paint.

  25. def fillPath(): Unit

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    Fills a rectangle using the current fill paint.

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

    Permalink

    Fills a rounded rectangle using the current fill paint.

  30. def fillRule: FillRule

    Permalink

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

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

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

    Permalink

    Fills text and includes a maximum width of the string.

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

    Permalink

    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

    Permalink
  35. def finalize(): Unit

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

    Permalink

    the current Font.

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

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

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

    Permalink

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

  40. def getTransform(xform: Affine): Affine

    Permalink

    Returns a copy of the current transform.

  41. def getTransform: Affine

    Permalink

    Returns a copy of the current transform.

  42. def globalAlpha: Double

    Permalink

    the current global alpha.

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

    Permalink
  44. def globalBlendMode: BlendMode

    Permalink

    the global blend mode.

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

    Permalink
  46. def hashCode(): Int

    Permalink

    returns

    The delegate hashcode

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

    Permalink
    Definition Classes
    Any
  48. def lineCap: StrokeLineCap

    Permalink

    the current stroke line cap.

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

    Permalink
  50. def lineJoin: StrokeLineJoin

    Permalink

    the current stroke line join.

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

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

    Permalink

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

  53. def lineWidth: Double

    Permalink

    the current line width.

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

    Permalink
  55. def miterLimit: Double

    Permalink

    the current miter limit.

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

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

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  61. def pixelWriter: PixelWriter

    Permalink

    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

    Permalink

    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

    Permalink

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

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

    Permalink

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

  65. def restore(): Unit

    Permalink

    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

    Permalink

    Rotates the current transform in degrees.

  67. def save(): Unit

    Permalink

    Saves the following attributes onto a stack.

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

    Permalink

    Scales the current transform by x, y.

  69. def setEffect(e: Effect): Unit

    Permalink

    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

    Permalink

    Sets the current transform.

  71. def setTransform(xform: Affine): Unit

    Permalink

    Sets the current transform.

  72. def stroke: Paint

    Permalink

    the current stroke.

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

    Permalink

    Strokes an Arc using the current stroke paint.

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

    Permalink

    Strokes a line using the current stroke paint.

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

    Permalink

    Strokes a rectangle using the current stroke paint.

  76. def strokePath(): Unit

    Permalink

    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

    Permalink

    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

    Permalink

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

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

    Permalink

    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

    Permalink

    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

    Permalink

    Strokes a rectangle using the current stroke paint.

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

    Permalink

    Strokes a rounded rectangle using the current stroke paint.

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

    Permalink

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

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  87. def textAlign: TextAlignment

    Permalink

    the current TextAlignment.

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

    Permalink
  89. def textBaseline: VPos

    Permalink

    the current Text Baseline.

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

    Permalink
  91. def toString(): String

    Permalink

    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

    Permalink

    Concatenates the input with the current transform.

  93. def transform(xform: Affine): Unit

    Permalink

    Concatenates the input with the current transform.

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

    Permalink

    Translates the current transform by x, y.

  95. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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

Inherited from AnyRef

Inherited from Any

Ungrouped