@Override
public Object getLayout(IGraphView view) {
if (view instanceof JGraphView) {
JGraphView jgraphview = (JGraphView) view;
mxHierarchicalLayout layout = new mxHierarchicalLayout(jgraphview.getGraph());
layout.setDisableEdgeStyle(false);
if (super.settings.get(FINE_TUNING) instanceof Boolean) {
layout.setFineTuning((Boolean)super.settings.get(FINE_TUNING));
}
if (super.settings.get(INTRA_CELL_SPACING) instanceof Double) {
layout.setIntraCellSpacing((Double)super.settings.get(INTRA_CELL_SPACING));
}
if (super.settings.get(INTER_RANK_CELL_SPACING) instanceof Double) {
layout.setInterRankCellSpacing((Double)super.settings.get(INTER_RANK_CELL_SPACING));
}
if (super.settings.get(INTER_HIERARCHY_SPACING) instanceof Double) {
layout.setInterHierarchySpacing((Double)super.settings.get(INTER_HIERARCHY_SPACING));
}
return layout;
}
return null;
}