|
|
@ -43,6 +43,9 @@ import java.util.Map; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class CustomChartDataPane extends ChartDataPane { |
|
|
|
public class CustomChartDataPane extends ChartDataPane { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final int HGAP = 0; |
|
|
|
|
|
|
|
private static final int VGAP = 6; |
|
|
|
|
|
|
|
|
|
|
|
public CustomChartDataPane(AttributeChangeListener listener) { |
|
|
|
public CustomChartDataPane(AttributeChangeListener listener) { |
|
|
|
super(listener); |
|
|
|
super(listener); |
|
|
|
} |
|
|
|
} |
|
|
@ -101,9 +104,11 @@ public class CustomChartDataPane extends ChartDataPane { |
|
|
|
case POINTER_360: |
|
|
|
case POINTER_360: |
|
|
|
return new SingleDataPane(new SeriesValueDataSetFieldsPane(), new SeriesValueCellDataFieldsPane()); |
|
|
|
return new SingleDataPane(new SeriesValueDataSetFieldsPane(), new SeriesValueCellDataFieldsPane()); |
|
|
|
default: |
|
|
|
default: |
|
|
|
return StringUtils.equals(CustomStyle.CUSTOM.toString(), plot.getCustomType()) ? |
|
|
|
if (StringUtils.equals(CustomStyle.CUSTOM.toString(), plot.getCustomType())){ |
|
|
|
new SingleDataPane(new SingleCategoryDataSetFieldsPane(), new SingleCategoryCellDataFieldsPane()) : |
|
|
|
return new SingleDataPane(new SingleCategoryDataSetFieldsPane(), new SingleCategoryCellDataFieldsPane()); |
|
|
|
new SingleDataPane(new MultiCategoryDataSetFieldsPane(), new MultiCategoryCellDataFieldsPane()); |
|
|
|
} else { |
|
|
|
|
|
|
|
return new SingleDataPane(new MultiCategoryDataSetFieldsPane(), new MultiCategoryCellDataFieldsPane()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -155,7 +160,7 @@ public class CustomChartDataPane extends ChartDataPane { |
|
|
|
JPanel tabPanel = new JPanel(new BorderLayout()); |
|
|
|
JPanel tabPanel = new JPanel(new BorderLayout()); |
|
|
|
tabPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 0, getBackground())); |
|
|
|
tabPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 0, getBackground())); |
|
|
|
tabPanel.add(tabPane, BorderLayout.CENTER); |
|
|
|
tabPanel.add(tabPane, BorderLayout.CENTER); |
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
|
this.setLayout(new BorderLayout(HGAP, VGAP)); |
|
|
|
this.add(tabPanel, BorderLayout.NORTH); |
|
|
|
this.add(tabPanel, BorderLayout.NORTH); |
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|