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
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
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
--- /dev/null
+<?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