net.sf.latexdraw.glib.views.Java2D.impl
Class LViewsFactory.CreateView2DCmd

java.lang.Object
  extended by net.sf.latexdraw.glib.views.CreateViewCmd<IShape,IViewShape,LViewsFactory.CreateView2DCmd>
      extended by net.sf.latexdraw.glib.views.Java2D.impl.LViewsFactory.CreateView2DCmd
Enclosing class:
LViewsFactory

private abstract class LViewsFactory.CreateView2DCmd
extends CreateViewCmd<IShape,IViewShape,LViewsFactory.CreateView2DCmd>

This class is a mix of the design patterns Command and Chain of responsibility. The goal is to find the command which can create the view of the given shape.


Field Summary
 
Fields inherited from class net.sf.latexdraw.glib.views.CreateViewCmd
clazz, next
 
Constructor Summary
LViewsFactory.CreateView2DCmd(LViewsFactory.CreateView2DCmd next, java.lang.Class<? extends IShape> classShape)
          Creates the command.
 
Method Summary
 
Methods inherited from class net.sf.latexdraw.glib.views.CreateViewCmd
create, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LViewsFactory.CreateView2DCmd

public LViewsFactory.CreateView2DCmd(LViewsFactory.CreateView2DCmd next,
                                     java.lang.Class<? extends IShape> classShape)
Creates the command.

Parameters:
next - The next command in the chain of responsibility. Can be null.
classShape - The type of the shape supported by the command.
Since:
3.0