From: niemisto Date: Tue, 26 Jan 2010 23:28:32 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@13657 ac1ea38d-2e2b... X-Git-Tag: simantics-1.0~90 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b5e3aef4a304d2c1742b504cc3e26460d04d9e2a;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@13657 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.h2d/src/org/simantics/h2d/canvas/EditorCanvas.java b/org.simantics.h2d/src/org/simantics/h2d/canvas/EditorCanvas.java index 6c1aea1e..6137c6f1 100644 --- a/org.simantics.h2d/src/org/simantics/h2d/canvas/EditorCanvas.java +++ b/org.simantics.h2d/src/org/simantics/h2d/canvas/EditorCanvas.java @@ -3,11 +3,10 @@ package org.simantics.h2d.canvas; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; -import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.Graphics2D; +import java.awt.Rectangle; import java.awt.RenderingHints; -import java.awt.TexturePaint; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.awt.event.KeyEvent; @@ -18,12 +17,7 @@ import java.awt.event.MouseMotionListener; import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelListener; import java.awt.geom.Point2D; -import java.awt.image.BufferedImage; import java.awt.image.VolatileImage; -import java.io.File; -import java.io.IOException; - -import javax.imageio.ImageIO; import org.simantics.h2d.editor.IDiagramEditor; import org.simantics.h2d.event.ClickEvent; @@ -96,6 +90,8 @@ public class EditorCanvas extends Canvas { g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g.setRenderingHint(G2DRenderingHints.KEY_CONTROL_BOUNDS, getBounds()); + + g.setClip(0, 0, getWidth(), getHeight()); editor.getSceneGraph().render(g); diff --git a/org.simantics.sysdyn.ui/sysdyn.product b/org.simantics.sysdyn.ui/sysdyn.product new file mode 100644 index 00000000..e6de6cd4 --- /dev/null +++ b/org.simantics.sysdyn.ui/sysdyn.product @@ -0,0 +1,33 @@ + + + + + + + + + + -ea -Xmx768M -Xshare:off + -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts + + + + + + + + + + + + + + + + + + + + + +