else if (parent instanceof ContainerShapePresentation)
{
ContainerShapePresentation container = (ContainerShapePresentation)parent;
for (ShapePresentation child :container.getChildren())
{
ShapePresentation presentation = getChildShapePresentation(child, shapePart);
if (presentation != null)
{
return presentation;
}
}
}
else if (parent instanceof ShapeFactoryPresentation)
{
ShapeFactoryPresentation container = (ShapeFactoryPresentation)parent;
for (ShapePresentation child : container.getChildren())
{
ShapePresentation presentation = getChildShapePresentation(child, shapePart);
if (presentation != null)
{
return presentation;
}
}