{
layout = new mxOrganicLayout(graph);
}
if (ident.equals("verticalPartition"))
{
layout = new mxPartitionLayout(graph, false)
{
/**
* Overrides the empty implementation to return the size of the
* graph control.
*/
public mxRectangle getContainerSize()
{
return graphComponent.getLayoutAreaSize();
}
};
}
else if (ident.equals("horizontalPartition"))
{
layout = new mxPartitionLayout(graph, true)
{
/**
* Overrides the empty implementation to return the size of the
* graph control.
*/