|
|
@ -6,7 +6,6 @@ import com.fr.design.gui.ibutton.UIButtonGroup; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.plugin.chart.attr.plot.VanChartPlot; |
|
|
|
import com.fr.plugin.chart.attr.plot.VanChartPlot; |
|
|
|
import com.fr.plugin.chart.designer.TableLayout4VanChartHelper; |
|
|
|
import com.fr.plugin.chart.designer.TableLayout4VanChartHelper; |
|
|
@ -28,6 +27,7 @@ public class VanChartDrillMapInteractivePane extends VanChartInteractivePaneWith |
|
|
|
private VanChartBackgroundPaneWithOutImageAndShadow backgroundPane; |
|
|
|
private VanChartBackgroundPaneWithOutImageAndShadow backgroundPane; |
|
|
|
private VanChartBackgroundPaneWithOutImageAndShadow selectBackgroundPane; |
|
|
|
private VanChartBackgroundPaneWithOutImageAndShadow selectBackgroundPane; |
|
|
|
private VanChartCatalogHyperLinkPane catalogSuperLink; |
|
|
|
private VanChartCatalogHyperLinkPane catalogSuperLink; |
|
|
|
|
|
|
|
private JPanel drillPane; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected JPanel getInteractivePane(VanChartPlot plot){ |
|
|
|
protected JPanel getInteractivePane(VanChartPlot plot){ |
|
|
@ -52,9 +52,8 @@ public class VanChartDrillMapInteractivePane extends VanChartInteractivePaneWith |
|
|
|
textAttrPane = new ChartTextAttrPane(){ |
|
|
|
textAttrPane = new ChartTextAttrPane(){ |
|
|
|
protected Component[][] getComponents(JPanel buttonPane) { |
|
|
|
protected Component[][] getComponents(JPanel buttonPane) { |
|
|
|
return new Component[][]{ |
|
|
|
return new Component[][]{ |
|
|
|
new Component[]{null}, |
|
|
|
new Component[]{fontNameComboBox, null}, |
|
|
|
new Component[]{fontNameComboBox}, |
|
|
|
new Component[]{buttonPane, null} |
|
|
|
new Component[]{buttonPane} |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -67,14 +66,17 @@ public class VanChartDrillMapInteractivePane extends VanChartInteractivePaneWith |
|
|
|
double[] columnSize = {f}; |
|
|
|
double[] columnSize = {f}; |
|
|
|
double[] rowSize = {p,p,p,p,p,p}; |
|
|
|
double[] rowSize = {p,p,p,p,p,p}; |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
new Component[]{null,null}, |
|
|
|
new Component[]{null}, |
|
|
|
new Component[]{openOrClose}, |
|
|
|
|
|
|
|
new Component[]{createTitlePane(Inter.getLocText("Plugin-Chart_Character"), textAttrPane)}, |
|
|
|
new Component[]{createTitlePane(Inter.getLocText("Plugin-Chart_Character"), textAttrPane)}, |
|
|
|
new Component[]{createTitlePane(Inter.getLocText("Plugin-ChartF_Background"), backgroundPane)}, |
|
|
|
new Component[]{createTitlePane(Inter.getLocText("Plugin-ChartF_Background"), backgroundPane)}, |
|
|
|
new Component[]{createTitlePane(Inter.getLocText("Plugin-ChartF_Select_Color"), selectBackgroundPane)}, |
|
|
|
new Component[]{createTitlePane(Inter.getLocText("Plugin-ChartF_Select_Color"), selectBackgroundPane)}, |
|
|
|
new Component[]{createTitlePane(Inter.getLocText("M_Insert-Hyperlink"), catalogSuperLink)} |
|
|
|
new Component[]{catalogSuperLink} |
|
|
|
}; |
|
|
|
}; |
|
|
|
JPanel drillPane = TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); |
|
|
|
drillPane = TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JPanel panel = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
panel.add(openOrClose, BorderLayout.NORTH); |
|
|
|
|
|
|
|
panel.add(drillPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
openOrClose.addChangeListener(new ChangeListener() { |
|
|
|
openOrClose.addChangeListener(new ChangeListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -83,7 +85,9 @@ public class VanChartDrillMapInteractivePane extends VanChartInteractivePaneWith |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(Inter.getLocText("Plugin-ChartF_Drill_Dir"), drillPane); |
|
|
|
JPanel panel1 = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Inter.getLocText("Plugin-ChartF_Drill_Dir"), panel); |
|
|
|
|
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(10,5,0,0)); |
|
|
|
|
|
|
|
return panel1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createTitlePane(String title, Component component) { |
|
|
|
private JPanel createTitlePane(String title, Component component) { |
|
|
@ -91,10 +95,7 @@ public class VanChartDrillMapInteractivePane extends VanChartInteractivePaneWith |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void checkEnable() { |
|
|
|
private void checkEnable() { |
|
|
|
boolean enable = openOrClose.getSelectedIndex() == 0; |
|
|
|
drillPane.setVisible(openOrClose.getSelectedIndex() == 0); |
|
|
|
textAttrPane.setEnabled(enable); |
|
|
|
|
|
|
|
GUICoreUtils.setEnabled(backgroundPane, enable); |
|
|
|
|
|
|
|
GUICoreUtils.setEnabled(selectBackgroundPane, enable); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|