/******************************************************************************* * Copyright (c) 2007- VTT Technical Research Centre of Finland. * 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: * VTT Technical Research Centre of Finland - initial API and implementation *******************************************************************************/ package org.simantics.processeditor.monitors; import org.simantics.db.Graph; import org.simantics.proconf.g3d.scenegraph.IGraphicsNode; /** * Interface for monitors (Textual display of objects properties) * * @author Marko Luukkainen * */ public interface Monitor { /** * Returns true if monitor can be attached to node * @param node * @return */ public boolean acceptNode(Graph graph,IGraphicsNode node); /** * Returns the scene-graph node where monitor is attached * @return */ public IGraphicsNode getNode(); /** * Sets monitored node * @param node */ public void setNode(Graph graph,IGraphicsNode node); /** * Updates monitor's texts * */ public void update(); public void update(Graph graph); /** * Removes the monitor. */ public void remove(); public void setTextProvider(MonitorTextProvider provider); }