protected Object createStructureData(IBranchPart branch) { IBranchPart parent = branch.getParentBranch(); if (parent != null) { Chart2 chart = null; IStructure sa = parent.getBranchPolicy().getStructure(parent); if (sa instanceof SpreadsheetColumnStructure) { chart = ((SpreadsheetColumnStructure) sa).getChart(parent); } if (chart == null) { chart = new Chart2(parent); } return chart.getColumn(branch.getBranchIndex()); } Chart2 chart = new Chart2(null); Column2 col = new Column2(branch, chart); Row2 row = new Row2(chart, RowHead.EMPTY); chart.setContent(col, row); chart.setLineWidth(1); Cell2 cell = new Cell2(chart, col, row); col.addCell(cell); for (IBranchPart sub : branch.getSubBranches()) { cell.addItem(new Item2(chart, sub)); } return col; }