com.tensegrity.graph.rule.handler
Class VisualNodeMovedInSubgraphHandlerRegistry

java.lang.Object
  extended bycom.tensegrity.graph.rule.handler.VisualNodeMovedInSubgraphHandlerRegistry

public final class VisualNodeMovedInSubgraphHandlerRegistry
extends java.lang.Object

This class is the registry for node-moved in subgraph handlers. It is used to register and to lookup the handlers by name.

Version:
$Id: VisualNodeMovedInSubgraphHandlerRegistry.java,v 1.6 2004/04/19 13:34:18 sr Exp $
Author:
StepanRutz
See Also:
VisualNodeMovedInSubgraphHandler

Constructor Summary
VisualNodeMovedInSubgraphHandlerRegistry()
          Constructs a new empty VisualNodeMovedInSubgraphHandlerRegistry instance.
 
Method Summary
 void disable()
          Disables the registry.
 void enable()
          Enabled the registry.
 VisualNodeMovedInSubgraphHandler get(java.lang.String name)
          Returns the handler with the given name or null if none was registered before.
 void register(java.lang.String name, VisualNodeMovedInSubgraphHandler handler)
          Registers a new handler under the given name.
 void unregister(java.lang.String name)
          Unregisters a new handler under the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualNodeMovedInSubgraphHandlerRegistry

public VisualNodeMovedInSubgraphHandlerRegistry()
Constructs a new empty VisualNodeMovedInSubgraphHandlerRegistry instance.

Method Detail

get

public final VisualNodeMovedInSubgraphHandler get(java.lang.String name)
Returns the handler with the given name or null if none was registered before.

Parameters:
name - id that uniquely identifies the handler.
Returns:
the found handler or null if none was found.

register

public final void register(java.lang.String name,
                           VisualNodeMovedInSubgraphHandler handler)
Registers a new handler under the given name.

A potentially existing previous handler with the same name is overridden by the new handler

.

Parameters:
name - id that uniquely identifies the handler. A previous handler with the same name is overridden, this value may not be null
handler - the handler to register, this value may not be null

unregister

public final void unregister(java.lang.String name)
Unregisters a new handler under the given name.

Parameters:
name - id that uniquely identifies the handler, this value may not be null

disable

public final void disable()
Disables the registry.


enable

public final void enable()
Enabled the registry.



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.