| /* |
| * Copyright (c) 2006, 2007 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: |
| * Richard Gronback (Borland) - initial API and implementation |
| */ |
| package org.eclipse.gmf.examples.mindmap.diagram.view.factories; |
| |
| import java.util.ArrayList; |
| import java.util.List; |
| |
| import org.eclipse.gmf.runtime.diagram.ui.view.factories.DiagramViewFactory; |
| import org.eclipse.gmf.runtime.notation.MeasurementUnit; |
| import org.eclipse.gmf.runtime.notation.NotationFactory; |
| import org.eclipse.gmf.runtime.notation.View; |
| |
| /** |
| * @generated |
| */ |
| public class MapViewFactory extends DiagramViewFactory { |
| |
| /** |
| * @generated |
| */ |
| protected List createStyles(View view) { |
| List styles = new ArrayList(); |
| styles.add(NotationFactory.eINSTANCE.createDiagramStyle()); |
| return styles; |
| } |
| |
| /** |
| * @generated |
| */ |
| protected MeasurementUnit getMeasurementUnit() { |
| return MeasurementUnit.PIXEL_LITERAL; |
| } |
| } |