summaryrefslogtreecommitdiff
path: root/src/graphyx/graphics/GraphicalRevoluteJoint.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphyx/graphics/GraphicalRevoluteJoint.scala')
-rw-r--r--src/graphyx/graphics/GraphicalRevoluteJoint.scala20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/graphyx/graphics/GraphicalRevoluteJoint.scala b/src/graphyx/graphics/GraphicalRevoluteJoint.scala
new file mode 100644
index 0000000..940a862
--- /dev/null
+++ b/src/graphyx/graphics/GraphicalRevoluteJoint.scala
@@ -0,0 +1,20 @@
+/*
+ * Graphyx
+ * copyright (c) 2009 Jakob Odersky
+ * made available under the MIT License
+*/
+
+package graphyx.graphics
+
+import sims.geometry._
+import sims.dynamics.joints._
+
+case class GraphicalRevoluteJoint(real: RevoluteJoint) extends GraphicalJoint {
+ val connection1 = real.connection1
+
+ def draw(): Unit = {
+ g.setColor(java.awt.Color.darkGray)
+ drawPoint(connection1)
+ }
+
+}