forked from fanruan/design
Browse Source
Merge in DESIGN/design from ~BJORN/design:release/10.0 to release/10.0 * commit '55e1b7288f6dd45bb41fd4e99d8844cf34796d30': CHART-15216 条件属性中不应该出现勾选框feature/big-screen
Bjorn
4 years ago
2 changed files with 38 additions and 2 deletions
@ -0,0 +1,36 @@ |
|||||||
|
package com.fr.van.chart.map.line; |
||||||
|
|
||||||
|
import com.fr.chart.chartattr.Plot; |
||||||
|
import com.fr.design.gui.icheckbox.UICheckBox; |
||||||
|
import com.fr.design.i18n.Toolkit; |
||||||
|
import com.fr.plugin.chart.base.AttrTooltip; |
||||||
|
import com.fr.van.chart.designer.style.VanChartStylePane; |
||||||
|
|
||||||
|
import java.awt.BorderLayout; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Bjorn |
||||||
|
* @version 10.0 |
||||||
|
* Created by Bjorn on 2020-08-20 |
||||||
|
*/ |
||||||
|
public class VanChartLineMapPlotTooltipNoCheckPane extends VanChartLineMapPlotTooltipPane { |
||||||
|
|
||||||
|
public VanChartLineMapPlotTooltipNoCheckPane(Plot plot, VanChartStylePane parent) { |
||||||
|
super(plot, parent); |
||||||
|
} |
||||||
|
|
||||||
|
protected void addComponents(Plot plot) { |
||||||
|
isTooltipShow = new UICheckBox(Toolkit.i18nText("Fine-Design_Chart_Use_Tooltip")); |
||||||
|
tooltipPane = createTooltipPane(plot); |
||||||
|
|
||||||
|
this.setLayout(new BorderLayout()); |
||||||
|
this.add(tooltipPane, BorderLayout.CENTER); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void populate(AttrTooltip attr) { |
||||||
|
super.populate(attr); |
||||||
|
isTooltipShow.setSelected(true); |
||||||
|
tooltipPane.setEnabled(isTooltipShow.isSelected()); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue