org.wilmascope.view
Class ViewManager.Registry

java.lang.Object
  extended by org.wilmascope.view.ViewManager.Registry
Enclosing class:
ViewManager

public class ViewManager.Registry
extends java.lang.Object


Constructor Summary
ViewManager.Registry()
           
 
Method Summary
 void addPrototypeView(GraphElementView prototype)
           
 GraphElementView create()
           
 GraphElementView create(java.lang.String type)
           
 GraphElementView getDefaultViewPrototype()
           
 javax.swing.ImageIcon getIcon()
           
 javax.swing.ImageIcon getIcon(java.lang.String type)
           
 java.lang.String[] getViewNames()
           
 void setDefaultView(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewManager.Registry

public ViewManager.Registry()
Method Detail

getViewNames

public java.lang.String[] getViewNames()

create

public GraphElementView create(java.lang.String type)
                        throws ViewManager.UnknownViewTypeException
Throws:
ViewManager.UnknownViewTypeException

getDefaultViewPrototype

public GraphElementView getDefaultViewPrototype()
                                         throws ViewManager.UnknownViewTypeException
Throws:
ViewManager.UnknownViewTypeException

create

public GraphElementView create()
                        throws ViewManager.UnknownViewTypeException
Throws:
ViewManager.UnknownViewTypeException

setDefaultView

public void setDefaultView(java.lang.String type)
                    throws ViewManager.UnknownViewTypeException
Throws:
ViewManager.UnknownViewTypeException

getIcon

public javax.swing.ImageIcon getIcon(java.lang.String type)
                              throws ViewManager.UnknownViewTypeException
Throws:
ViewManager.UnknownViewTypeException

getIcon

public javax.swing.ImageIcon getIcon()
                              throws ViewManager.UnknownViewTypeException
Throws:
ViewManager.UnknownViewTypeException

addPrototypeView

public void addPrototypeView(GraphElementView prototype)