172173174175176177178179180181182
{ case TILING_PATTERN: pattern = new PDTilingPatternResources(resourceDictionary); break; case SHADING_PATTERN: pattern = new PDShadingPatternResources(resourceDictionary); break; default: throw new IOException( "Error: Unknown pattern type " + patternType ); } return pattern;