summaryrefslogtreecommitdiff
path: root/src/graphyx/graphics/GraphicalSpringJoint.scala
blob: dbd9d5f5f687d0b2f7d8ec59d5136eb057b01c83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Graphyx
 * copyright (c) 2009 Jakob Odersky
 * made available under the MIT License
*/

package graphyx.graphics

import sims.dynamics.joints._

case class GraphicalSpringJoint(real: SpringJoint) extends GraphicalJoint {
  val connection1 = real.connection1
  val connection2 = real.connection2
  def draw(): Unit = {
    g.setColor(java.awt.Color.GRAY)
    drawLine(connection1, connection2)
  }
}