Exemple #1
0
 public IShapeCreator GetCreatorForShapeType(string shapeTypeName)
 {
     if (ShapeTypesInfoMap.ContainsKey(shapeTypeName))
     {
         return(ShapeTypesInfoMap[shapeTypeName].Creator);
     }
     else
     {
         return(null);
     }
 }
Exemple #2
0
 public IShapeRenderer GetCurrentRendererForShapeType(string shapeTypeName)
 {
     if (ShapeTypesInfoMap.ContainsKey(shapeTypeName))
     {
         return(ShapeTypesInfoMap[shapeTypeName].Renderer);
     }
     else
     {
         return(null);
     }
 }
Exemple #3
0
 public IShapeRenderer GetRendererForShapeType(string shapeTypeName, string rendererName)
 {
     if (ShapeTypesInfoMap.ContainsKey(shapeTypeName))
     {
         if (ShapeTypesInfoMap[shapeTypeName].Renderers.ContainsKey(rendererName))
         {
             return(ShapeTypesInfoMap[shapeTypeName].Renderers[rendererName]);
         }
         else
         {
             return(null);
         }
     }
     else
     {
         return(null);
     }
 }