Java2D

object Java2D

Various utilities for using Java2D

Source:
Java2D.scala
class Object
trait Matchable
class Any
Java2D.type

Value members

Concrete methods

def setFill(graphics: Graphics2D, fill: Fill): Unit
def setStroke(graphics: Graphics2D, stroke: Stroke): Unit
def strokeAndFill(graphics: Graphics2D, path: Path2D, current: DrawingContext): Unit
def toAwtColor(color: Color): Color
def toAwtFont(font: Font): Font
def toPath2D(elements: List[PathElement]): Path2D

Converts to an open Path2D

Converts to an open Path2D

Source:
Java2D.scala
def toPoint2D(point: Point): Point2D
def withTransform(graphics: Graphics2D, transform: Transform)(f: => Unit): Unit