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.profile;
14 import org.simantics.db.RequestProcessor;
15 import org.simantics.db.Resource;
16 import org.simantics.db.procedure.SetListener;
20 * Groups are a part of the diagram profile framework. They are used to form and
21 * keep track of the group of objects on which {@link Style}s operate.
23 * @author Antti Villberg
25 public interface Group {
28 * Allows styles to start tracking the set of objects (resources) listed by
29 * this Group implementation through the specified {@link SetListener}.
31 * @param processor graph database access handle
32 * @param runtimeDiagram runtime resource of the active diagram editor
34 * @param configuration variable access to the diagram's mapped
36 * @param listener the listener to notify of changes in the tracked set of
37 * objects. Usually one just delegates normal database listener
38 * events to this listener.
40 void trackItems(RequestProcessor processor, Resource runtimeDiagram, SetListener<Resource> listener);