[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gef3d-commits] r239 - trunk/org.eclipse.gef3d.examples.ecore/src/java/org/eclipse/gef3d/examples/ecore/figures

Author: jvonpilgrim
Date: 2009-08-05 08:41:26 -0400 (Wed, 05 Aug 2009)
New Revision: 239

Modified:
   trunk/org.eclipse.gef3d.examples.ecore/src/java/org/eclipse/gef3d/examples/ecore/figures/DiagramFigure3D.java
Log:
- added surface

Modified: trunk/org.eclipse.gef3d.examples.ecore/src/java/org/eclipse/gef3d/examples/ecore/figures/DiagramFigure3D.java
===================================================================
--- trunk/org.eclipse.gef3d.examples.ecore/src/java/org/eclipse/gef3d/examples/ecore/figures/DiagramFigure3D.java	2009-08-05 12:36:54 UTC (rev 238)
+++ trunk/org.eclipse.gef3d.examples.ecore/src/java/org/eclipse/gef3d/examples/ecore/figures/DiagramFigure3D.java	2009-08-05 12:41:26 UTC (rev 239)
@@ -13,6 +13,8 @@
 import org.eclipse.draw2d.FreeformLayout;
 import org.eclipse.draw2d.Graphics;
 import org.eclipse.draw3d.Figure3D;
+import org.eclipse.draw3d.FigureSurface;
+import org.eclipse.draw3d.ISurface;
 import org.eclipse.draw3d.RenderContext;
 import org.eclipse.draw3d.TransparentObject;
 import org.eclipse.draw3d.camera.ICamera;
@@ -38,6 +40,13 @@
 
 	private Shape m_shape = new CuboidFigureShape(this);
 
+	
+	/**
+	 * The surface of this figure. This is where 2D children are placed.
+	 */
+	private ISurface m_surface = new FigureSurface(this);
+	
+	
 	public DiagramFigure3D() {
 
 		setLayoutManager(new FreeformLayout());
@@ -95,4 +104,15 @@
 	public void renderTransparent(RenderContext renderContext) {
 		m_shape.render(renderContext);
 	}
+	
+	/**
+	 * {@inheritDoc}
+	 * 
+	 * @see org.eclipse.draw3d.Figure3D#getSurface()
+	 */
+	@Override
+	public ISurface getSurface() {
+
+		return m_surface;
+	}
 }
\ No newline at end of file