blob: 089b55874a32472181800052c3f0aa7ca97d9ab6 [file] [log] [blame]
/*
* Copyright (c) 2006 Borland Software Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Artem Tikhomirov (Borland) - initial API and implementation
*/
«IMPORT "http://www.eclipse.org/gmf/2006/GraphicalDefinition"»
«IMPORT "http://www.eclipse.org/emf/2002/Ecore"»
«DEFINE localCoordinates FOR gmfgraph::RealFigure»
/**
* @generated
*/
private boolean myUseLocalCoordinates = «!children.typeSelect(Polyline).isEmpty()»;
/**
* @generated
*/
protected boolean useLocalCoordinates() {
return myUseLocalCoordinates;
}
/**
* @generated
*/
protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
myUseLocalCoordinates = useLocalCoordinates;
}
«ENDDEFINE»
«DEFINE localCoordinates FOR gmfgraph::Polyline
«ENDDEFINE»
«DEFINE localCoordinates FOR gmfgraph::Label
«ENDDEFINE»
«DEFINE extraMethods FOR gmfgraph::Figure
«ENDDEFINE»
«DEFINE extraMethods FOR gmfgraph::ScalablePolygon
«EXPAND xtras::ScalablePolygon::behaviour
«ENDDEFINE»