public IShapeCreator GetCreatorForShapeType(string shapeTypeName) { if (ShapeTypesInfoMap.ContainsKey(shapeTypeName)) { return(ShapeTypesInfoMap[shapeTypeName].Creator); } else { return(null); } }
public IShapeRenderer GetCurrentRendererForShapeType(string shapeTypeName) { if (ShapeTypesInfoMap.ContainsKey(shapeTypeName)) { return(ShapeTypesInfoMap[shapeTypeName].Renderer); } else { return(null); } }
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); } }