|
|
|
@ -13,6 +13,7 @@ import com.fr.design.gui.ibutton.UIButtonGroup;
|
|
|
|
|
import com.fr.design.gui.ibutton.UIToggleButton; |
|
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.mainframe.chart.PaneTitleConstants; |
|
|
|
@ -36,6 +37,7 @@ import javax.swing.SwingConstants;
|
|
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Color; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Point; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
@ -69,6 +71,7 @@ public class VanChartTitlePane extends AbstractVanChartScrollPane<VanChart> {
|
|
|
|
|
private JPanel maxProportionPane; |
|
|
|
|
//区域显示策略 恢复用注释。取消注释。
|
|
|
|
|
//private LimitPane limitPane;
|
|
|
|
|
private UILabel tooltipLabel; |
|
|
|
|
|
|
|
|
|
protected VanChartStylePane parent; |
|
|
|
|
|
|
|
|
@ -88,21 +91,30 @@ public class VanChartTitlePane extends AbstractVanChartScrollPane<VanChart> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initComponents() { |
|
|
|
|
isTitleVisible = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Title_Visible")); |
|
|
|
|
titlePane = createTitlePane(); |
|
|
|
|
isTitleVisible = new UICheckBox(Toolkit.i18nText("Fine-Design_Chart_Title_Visible")); |
|
|
|
|
tooltipLabel = new UILabel("<html>" + Toolkit.i18nText("Fine-Design_Chart_Title_Tooltip") + "</html>"); |
|
|
|
|
tooltipLabel.setForeground(Color.gray); |
|
|
|
|
tooltipLabel.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); |
|
|
|
|
tooltipLabel.setVisible(false); |
|
|
|
|
|
|
|
|
|
JPanel panel = new JPanel(); |
|
|
|
|
panel.setLayout(new BorderLayout()); |
|
|
|
|
panel.add(isTitleVisible, BorderLayout.NORTH); |
|
|
|
|
panel.add(tooltipLabel, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
titlePane = createTitlePane(); |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double[] columnSize = {f}; |
|
|
|
|
double[] rowSize = {p, p, p}; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{isTitleVisible}, |
|
|
|
|
new Component[]{panel}, |
|
|
|
|
new Component[]{titlePane} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
JPanel panel = TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize); |
|
|
|
|
JPanel panel1 = TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize); |
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
this.add(panel, BorderLayout.CENTER); |
|
|
|
|
this.add(panel1, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
isTitleVisible.addActionListener(new ActionListener() { |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
@ -370,4 +382,7 @@ public class VanChartTitlePane extends AbstractVanChartScrollPane<VanChart> {
|
|
|
|
|
ChartInfoCollector.getInstance().updateChartConfig(chart, ConfigType.TITLE, chart.getBuryingPointTitleConfig()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void refreshTooltipLabel(boolean inForm) { |
|
|
|
|
tooltipLabel.setVisible(inForm); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|