Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2008-08-05 12:41:42 +0000
committerdstadnik2008-08-05 12:41:42 +0000
commit4d76aa90a6eb68a1165e09e129a2f0fdae168b22 (patch)
treefcd63d8ebd4bc806c889dbfcc59e0528beca2ec2 /plugins/org.eclipse.gmf.graphdef.codegen
parent370e5c901ef4207d0c4704abe820fd27df211db0 (diff)
downloadorg.eclipse.gmf-tooling-4d76aa90a6eb68a1165e09e129a2f0fdae168b22.tar.gz
org.eclipse.gmf-tooling-4d76aa90a6eb68a1165e09e129a2f0fdae168b22.tar.xz
org.eclipse.gmf-tooling-4d76aa90a6eb68a1165e09e129a2f0fdae168b22.zip
[243050] support AOI in gmfgraph
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt
index 773788029..b285c99da 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt
@@ -54,5 +54,12 @@
«IF safeRendering-»
«figureVarName».setSafeRendering(true);
«ENDIF-»
+«IF areaOfInterest != null-»
+«figureVarName».setAreaOfInterest(«EXPAND Instance FOR areaOfInterest»);
+«ENDIF-»
«EXPAND attr::Figure::figureAttrs(figureVarName)-»
«ENDDEFINE»
+
+«DEFINE Instance FOR gmfgraph::Rectangle2D-»
+new java.awt.geom.Rectangle2D.Double(«x», «y», «width», «height»)
+«ENDDEFINE»

Back to the top