org.openbp.cockpit.modeler.figures.process
Class ProcessElementFigureRegistry

java.lang.Object
  extended by org.openbp.cockpit.modeler.figures.process.ProcessElementFigureRegistry

public class ProcessElementFigureRegistry
extends java.lang.Object

Node figure registry. This class is a singleton.

Version:
$Rev$, $Date$
Author:
Author: Heiko Erhardt (Heiko.Erhardt@gmx.net)

Method Summary
 ProcessElementContainer createProcessElementContainer(ProcessObject po)
          Creates a new process element container figure for the given process element.
static ProcessElementFigureRegistry getInstance()
          Gets the singleton instance of this class.
 void registerFigure(java.lang.Class figureClass, java.lang.Class elementClass)
          Registers a figure for a process element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProcessElementFigureRegistry getInstance()
Gets the singleton instance of this class.


registerFigure

public void registerFigure(java.lang.Class figureClass,
                           java.lang.Class elementClass)
Registers a figure for a process element.

Parameters:
figureClass - Class of the figure
elementClass - Class of the process element the figure can represent

createProcessElementContainer

public ProcessElementContainer createProcessElementContainer(ProcessObject po)
Creates a new process element container figure for the given process element.

Returns:
The new figure


Copyright © 2011. All Rights Reserved.