public ProcessDrawer(final ProcessRendererModel model,final boolean drawHighlight){
  if (model == null) {
    throw new IllegalArgumentException("model must not be null!");
  }
  this.model=model;
  this.drawHighlight=drawHighlight;
  decorators=new HashMap<>();
  for (  RenderPhase phase : RenderPhase.drawOrder()) {
    decorators.put(phase,new CopyOnWriteArrayList<ProcessDrawDecorator>());
  }
  operatorDecorators=new CopyOnWriteArrayList<OperatorDrawDecorator>();
}

public ProcessDrawer ( final ProcessRendererModel model , final boolean drawHighlight ) { if ( model == null ) { throw new IllegalArgumentException ( "model must not be null!" ) ; } this . model = model ; this . drawHighlight = drawHighlight ; decorators = new HashMap < > ( ) ; for ( RenderPhase phase : RenderPhase . drawOrder ( ) ) { decorators . put ( phase , new CopyOnWriteArrayList < ProcessDrawDecorator > ( ) ) ; } operatorDecorators = new CopyOnWriteArrayList < OperatorDrawDecorator > ( ) ; }
creates a new drawer instance which can be used to draw the process specified in the model .
