addPattern method

void addPattern(
  1. PdfPattern pattern
)
inherited

Add a pattern to this graphic object

Implementation

void addPattern(PdfPattern pattern) {
  if (!patterns.containsKey(pattern.name)) {
    patterns[pattern.name] = pattern;
  }
}