public void addCommand(PDFCmd cmd){
synchronized (commands) {
    commands.add(cmd);
  }
  updateImages();
}

public void addCommand ( PDFCmd cmd ) { synchronized ( commands ) { commands . add ( cmd ) ; } updateImages ( ) ; }
add a single command to the page list .
