1 /*******************************************************************************
\r
2 * Copyright (c) 2007- VTT Technical Research Centre of Finland.
\r
3 * All rights reserved. This program and the accompanying materials
\r
4 * are made available under the terms of the Eclipse Public License v1.0
\r
5 * which accompanies this distribution, and is available at
\r
6 * http://www.eclipse.org/legal/epl-v10.html
\r
9 * VTT Technical Research Centre of Finland - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package org.simantics.processeditor.monitors;
\r
13 import org.simantics.db.Graph;
\r
14 import org.simantics.proconf.g3d.scenegraph.IGraphicsNode;
\r
20 * Interface for monitors (Textual display of objects properties)
\r
22 * @author Marko Luukkainen
\r
25 public interface Monitor {
\r
28 * Returns true if monitor can be attached to node
\r
32 public boolean acceptNode(Graph graph,IGraphicsNode node);
\r
35 * Returns the scene-graph node where monitor is attached
\r
38 public IGraphicsNode getNode();
\r
41 * Sets monitored node
\r
44 public void setNode(Graph graph,IGraphicsNode node);
\r
47 * Updates monitor's texts
\r
50 public void update();
\r
52 public void update(Graph graph);
\r
55 * Removes the monitor.
\r
57 public void remove();
\r
60 public void setTextProvider(MonitorTextProvider provider);
\r