Ported GraphicsPanel to Scala.