|
|
@ -37,6 +37,8 @@ import java.awt.Component; |
|
|
|
public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
private static final long serialVersionUID = -22438250307946275L; |
|
|
|
private static final long serialVersionUID = -22438250307946275L; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final int HORIZONTAL_INDEX = 0; |
|
|
|
|
|
|
|
|
|
|
|
private BasicBeanPane<AttrTooltipContent> dataLabelContentPane; |
|
|
|
private BasicBeanPane<AttrTooltipContent> dataLabelContentPane; |
|
|
|
|
|
|
|
|
|
|
|
private UIButtonGroup<Integer> position; |
|
|
|
private UIButtonGroup<Integer> position; |
|
|
@ -52,6 +54,9 @@ public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
private JPanel positionPane; |
|
|
|
private JPanel positionPane; |
|
|
|
private Integer[] oldPositionValues; |
|
|
|
private Integer[] oldPositionValues; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private JPanel borderPaneWithTitle; |
|
|
|
|
|
|
|
private JPanel backgroundPaneWithTitle; |
|
|
|
|
|
|
|
|
|
|
|
private VanChartStylePane parent; |
|
|
|
private VanChartStylePane parent; |
|
|
|
private Plot plot; |
|
|
|
private Plot plot; |
|
|
|
|
|
|
|
|
|
|
@ -126,8 +131,9 @@ public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createLabelBorderPane() { |
|
|
|
private JPanel createLabelBorderPane() { |
|
|
|
borderPane = new VanChartBorderWithShapePane(); |
|
|
|
borderPane = new VanChartBorderWithShapePane(); |
|
|
|
|
|
|
|
borderPaneWithTitle = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Design_Chart_Border"), borderPane); |
|
|
|
|
|
|
|
|
|
|
|
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Design_Chart_Border"), borderPane); |
|
|
|
return borderPaneWithTitle; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createLabelBackgroundPane() { |
|
|
|
private JPanel createLabelBackgroundPane() { |
|
|
@ -143,7 +149,9 @@ public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Design_Chart_Background"), backgroundPane); |
|
|
|
backgroundPaneWithTitle = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Design_Chart_Background"), backgroundPane); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return backgroundPaneWithTitle; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected double[] getLabelStyleRowSize(double p) { |
|
|
|
protected double[] getLabelStyleRowSize(double p) { |
|
|
@ -228,6 +236,12 @@ public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Direction_Vertical"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Direction_Vertical"), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
orientation.addChangeListener(new ChangeListener() { |
|
|
|
|
|
|
|
public void stateChanged(ChangeEvent e) { |
|
|
|
|
|
|
|
checkOrientation(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return TableLayout4VanChartHelper.createGapTableLayoutPane(Toolkit.i18nText("Fine-Design_Chart_Text_Orientation"), orientation); |
|
|
|
return TableLayout4VanChartHelper.createGapTableLayoutPane(Toolkit.i18nText("Fine-Design_Chart_Text_Orientation"), orientation); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -310,6 +324,16 @@ public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
tractionLine.setSelected(position.getSelectedItem() == Constants.OUTSIDE); |
|
|
|
tractionLine.setSelected(position.getSelectedItem() == Constants.OUTSIDE); |
|
|
|
checkPositionEnabled(); |
|
|
|
checkPositionEnabled(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void checkOrientation() { |
|
|
|
|
|
|
|
if (orientation != null && borderPaneWithTitle != null && backgroundPaneWithTitle != null) { |
|
|
|
|
|
|
|
boolean horizontal = orientation.getSelectedIndex() == HORIZONTAL_INDEX; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
borderPaneWithTitle.setVisible(horizontal); |
|
|
|
|
|
|
|
backgroundPaneWithTitle.setVisible(horizontal); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void checkPositionEnabled() { |
|
|
|
private void checkPositionEnabled() { |
|
|
|
tractionLinePane.setVisible(position.getSelectedItem() == Constants.OUTSIDE); |
|
|
|
tractionLinePane.setVisible(position.getSelectedItem() == Constants.OUTSIDE); |
|
|
|
} |
|
|
|
} |
|
|
@ -345,6 +369,7 @@ public class VanChartPlotLabelDetailPane extends BasicPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
checkAllUse(); |
|
|
|
checkAllUse(); |
|
|
|
|
|
|
|
checkOrientation(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|