|
|
|
@ -46,6 +46,7 @@ import javax.swing.event.ChangeListener;
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.CardLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
@ -264,7 +265,20 @@ public class VanChartBaseAxisPane extends FurtherBasicBeanPane<VanChartAxis> {
|
|
|
|
|
private JPanel createLabelContentPane() { |
|
|
|
|
labelContentPane = new JPanel(new BorderLayout()); |
|
|
|
|
showLogicPane = new JPanel(new BorderLayout()); |
|
|
|
|
labelStylePane = new JPanel(new CardLayout()); |
|
|
|
|
labelStylePane = new JPanel(new CardLayout()) { |
|
|
|
|
@Override |
|
|
|
|
public Dimension getPreferredSize() { |
|
|
|
|
switch (showLogic.getSelectedIndex()) { |
|
|
|
|
case 0: |
|
|
|
|
return wholeDisplayLabelPanel.getPreferredSize(); |
|
|
|
|
case 1: |
|
|
|
|
return categoryStylePane.getPreferredSize(); |
|
|
|
|
case -1: |
|
|
|
|
default: |
|
|
|
|
return super.getPreferredSize(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
labelStylePane.add(wholeDisplayLabelPanel, WHOLE_DISPLAY); |
|
|
|
|
labelStylePane.add(createCategoryStylePane(), LAYER_DISPLAY); |
|
|
|
|
showLogicPane.add(TableLayout4VanChartHelper.createGapTableLayoutPane(Toolkit.i18nText("Fine-Design_Chart_Axis_Label_Show_Logic"), showLogic), BorderLayout.NORTH); |
|
|
|
|