public void addDecoration(LineDecoration decoration){
  if (decoration != null) {
    decorations.add(decoration);
  }
}

public void addDecoration ( LineDecoration decoration ) { if ( decoration != null ) { decorations . add ( decoration ) ; } }
add another line decoration into the composite line decoration . the new decoration will be appended to the existing decorations and is also the last drawn .
