net.sf.latexdraw.glib.views.pst
Class PSTViewsFactory.CreateViewPSTCmd

java.lang.Object
  extended by net.sf.latexdraw.glib.views.CreateViewCmd<IShape,PSTShapeView<?>,PSTViewsFactory.CreateViewPSTCmd>
      extended by net.sf.latexdraw.glib.views.pst.PSTViewsFactory.CreateViewPSTCmd
Enclosing class:
PSTViewsFactory

private abstract class PSTViewsFactory.CreateViewPSTCmd
extends CreateViewCmd<IShape,PSTShapeView<?>,PSTViewsFactory.CreateViewPSTCmd>

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 PST view of the given shape.


Field Summary
 
Fields inherited from class net.sf.latexdraw.glib.views.CreateViewCmd
clazz, next
 
Constructor Summary
PSTViewsFactory.CreateViewPSTCmd(PSTViewsFactory.CreateViewPSTCmd 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

PSTViewsFactory.CreateViewPSTCmd

public PSTViewsFactory.CreateViewPSTCmd(PSTViewsFactory.CreateViewPSTCmd 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