addArtifacts method

void addArtifacts(
  1. List<Artifact> artifacts
)

Adds all the given artifacts to the band.

This method adds the provided artifacts to the existing list of artifacts in the band. It also resets the cached rectangle, as the addition or removal of an artifact can affect the overall layout and dimensions of the band.

Implementation

void addArtifacts(final List<Artifact> artifacts) {
  this.artifacts.addAll(artifacts);
}