]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@13657 ac1ea38d-2e2b...
authorniemisto <niemisto@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 26 Jan 2010 23:28:32 +0000 (23:28 +0000)
committerniemisto <niemisto@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 26 Jan 2010 23:28:32 +0000 (23:28 +0000)
org.simantics.h2d/src/org/simantics/h2d/canvas/EditorCanvas.java
org.simantics.sysdyn.ui/sysdyn.product [new file with mode: 0644]

index 6c1aea1e2d71a4dd77d67285e5f194f8316d693b..6137c6f1e45a47ed43d55b76f1b94c38b7ea5e96 100644 (file)
@@ -3,11 +3,10 @@ package org.simantics.h2d.canvas;
 import java.awt.Canvas;\r
 import java.awt.Color;\r
 import java.awt.Dimension;\r
-import java.awt.GradientPaint;\r
 import java.awt.Graphics;\r
 import java.awt.Graphics2D;\r
+import java.awt.Rectangle;\r
 import java.awt.RenderingHints;\r
-import java.awt.TexturePaint;\r
 import java.awt.event.ComponentAdapter;\r
 import java.awt.event.ComponentEvent;\r
 import java.awt.event.KeyEvent;\r
@@ -18,12 +17,7 @@ import java.awt.event.MouseMotionListener;
 import java.awt.event.MouseWheelEvent;\r
 import java.awt.event.MouseWheelListener;\r
 import java.awt.geom.Point2D;\r
-import java.awt.image.BufferedImage;\r
 import java.awt.image.VolatileImage;\r
-import java.io.File;\r
-import java.io.IOException;\r
-\r
-import javax.imageio.ImageIO;\r
 \r
 import org.simantics.h2d.editor.IDiagramEditor;\r
 import org.simantics.h2d.event.ClickEvent;\r
@@ -96,6 +90,8 @@ public class EditorCanvas extends Canvas {
                g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\r
                g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);               \r
                g.setRenderingHint(G2DRenderingHints.KEY_CONTROL_BOUNDS, getBounds());\r
+\r
+               g.setClip(0, 0, getWidth(), getHeight());\r
                \r
                editor.getSceneGraph().render(g);\r
                \r
diff --git a/org.simantics.sysdyn.ui/sysdyn.product b/org.simantics.sysdyn.ui/sysdyn.product
new file mode 100644 (file)
index 0000000..e6de6cd
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<?pde version="3.5"?>\r
+\r
+<product name="Simantics System Dynamic Tool" id="org.simantics.workbench.product" application="org.simantics.workbench.application" version="1.0" useFeatures="true" includeLaunchers="true">\r
+\r
+   <configIni use="default">\r
+   </configIni>\r
+\r
+   <launcherArgs>\r
+      <vmArgs>-ea  -Xmx768M -Xshare:off</vmArgs>\r
+      <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>\r
+   </launcherArgs>\r
+\r
+   <launcher>\r
+      <solaris/>\r
+      <win useIco="false">\r
+         <bmp/>\r
+      </win>\r
+   </launcher>\r
+\r
+   <vm>\r
+   </vm>\r
+\r
+   <plugins>\r
+   </plugins>\r
+\r
+   <features>\r
+      <feature id="org.simantics.sdk" version="1.0.0"/>\r
+      <feature id="org.simantics.sysdyn.feature" version="1.0.0.qualifier"/>\r
+   </features>\r
+\r
+\r
+</product>\r