1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.scenegraph.adapters;
14 import java.awt.event.AWTEventListener;
16 import org.simantics.scenegraph.g2d.G2DSceneGraph;
19 * Interface for resources that provide scene graph view
20 * Currently only 2D scene graph is supported
25 public interface ISceneGraphProvider {
28 * @param sg Initialized G2DSceneGraph instance
31 public G2DSceneGraph initializeSceneGraph(G2DSceneGraph sg);
33 public G2DSceneGraph initializeSceneGraph(G2DSceneGraph sg, String modelURI, String RVI);
37 * @param sg Initialized G2DSceneGraph instance
38 * @param view Layer other view identifier. If null, default is used
41 public G2DSceneGraph initializeSceneGraph(G2DSceneGraph sg, String view);
43 public AWTEventListener getEventListener();
46 * Method for passing parameters for initialization. Basically the key should be IHintContext.Key, but it doesn't have to be.
47 * The detailed list of supported keys and values should be described in implementation.
50 * @param value Hint value
52 public void setHint(Object key, Object value);
54 public void dispose();