summaryrefslogtreecommitdiff
path: root/src/graphyx/gui/ShapeInfoPanel.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphyx/gui/ShapeInfoPanel.scala')
-rw-r--r--src/graphyx/gui/ShapeInfoPanel.scala35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/graphyx/gui/ShapeInfoPanel.scala b/src/graphyx/gui/ShapeInfoPanel.scala
new file mode 100644
index 0000000..d94c0bd
--- /dev/null
+++ b/src/graphyx/gui/ShapeInfoPanel.scala
@@ -0,0 +1,35 @@
+/*
+ * Graphyx
+ * copyright (c) 2009 Jakob Odersky
+ * made available under the MIT License
+*/
+
+package graphyx.gui
+
+import graphyx.graphics._
+import sims.geometry._
+import sims.dynamics._
+import scala.swing._
+import scala.swing.event._
+import GridBagPanel._
+
+class ShapeInfoPanel(container: Container) extends GridPanel(2,2) {
+
+ this.border = Swing.EmptyBorder(3,3,3,3)
+ this.hGap = 3
+ this.vGap = 3
+
+ val lblBody = new Label("Body")
+ val lblValBody = new Label("0")
+
+ val lblShape = new Label("Shape")
+ val lblValShape = new Label("0")
+
+ val components = List(
+ lblBody, lblValBody,
+ lblShape, lblValShape
+ )
+
+ contents ++= components
+
+}