Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 447a41e18daf83fdd0d6599f155a9a7020a76e8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
		<%=fqnSwitch.doSwitch(df)%> <%=decFigVarName%> = new <%=fqnSwitch.doSwitch(df)%>();
<%@ include file="FigureAttrs.jetinc"%>
<% /*include FigureChildren*/ %>
<%if ((df instanceof PolylineDecoration || df instanceof PolygonDecoration) && !((Polyline) df).getTemplate().isEmpty()) {%>
		org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList();
<%	for (Iterator pointIt = ((Polyline) df).getTemplate().iterator(); pointIt.hasNext(); ) {
		Point p = (Point) pointIt.next();%>
		pl.addPoint(<%=p.getX()%>, <%=p.getY()%>);
<%} /*for*/ %>
		<%=decFigVarName%>.setTemplate(pl);
<%} /*if instanceof */ %>

Back to the top