forked from fanruan/design
Qinghui.Liu
4 years ago
30 changed files with 480 additions and 342 deletions
@ -0,0 +1,79 @@
|
||||
package com.fr.van.chart.wordcloud.designer.style; |
||||
|
||||
|
||||
import com.fr.design.i18n.Toolkit; |
||||
import com.fr.van.chart.designer.component.format.ChangedPercentFormatPaneWithCheckBox; |
||||
import com.fr.van.chart.designer.component.format.ChangedPercentFormatPaneWithoutCheckBox; |
||||
import com.fr.van.chart.designer.component.format.ChangedValueFormatPaneWithCheckBox; |
||||
import com.fr.van.chart.designer.component.format.ChangedValueFormatPaneWithoutCheckBox; |
||||
import com.fr.van.chart.designer.style.VanChartStylePane; |
||||
|
||||
import javax.swing.JPanel; |
||||
import java.awt.Component; |
||||
|
||||
/** |
||||
* Created by mengao on 2017/6/9. |
||||
*/ |
||||
public class VanChartWordCloudRefreshTooltipContentPane extends VanChartWordCloudTooltipContentPane { |
||||
public VanChartWordCloudRefreshTooltipContentPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
super(null, showOnPane); |
||||
} |
||||
|
||||
@Override |
||||
protected void initFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
super.initFormatPane(parent, showOnPane); |
||||
|
||||
ChangedValueFormatPaneWithCheckBox changedValueFormatPane = new ChangedValueFormatPaneWithCheckBox(parent, showOnPane) { |
||||
@Override |
||||
protected String getCheckBoxText() { |
||||
return Toolkit.i18nText("Fine-Design_Chart_Change_Word_Value"); |
||||
} |
||||
}; |
||||
|
||||
ChangedPercentFormatPaneWithCheckBox changedPercentFormatPane = new ChangedPercentFormatPaneWithCheckBox(parent, showOnPane); |
||||
|
||||
setChangedValueFormatPane(changedValueFormatPane); |
||||
setChangedPercentFormatPane(changedPercentFormatPane); |
||||
} |
||||
|
||||
protected void initRichTextFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
super.initRichTextFormatPane(parent, showOnPane); |
||||
|
||||
ChangedValueFormatPaneWithoutCheckBox richTextChangedValueFormatPane = new ChangedValueFormatPaneWithoutCheckBox(parent, showOnPane) { |
||||
protected String getCheckBoxText() { |
||||
return Toolkit.i18nText("Fine-Design_Chart_Change_Word_Value"); |
||||
} |
||||
}; |
||||
|
||||
ChangedPercentFormatPaneWithoutCheckBox richTextChangedPercentFormatPane = new ChangedPercentFormatPaneWithoutCheckBox(parent, showOnPane); |
||||
|
||||
setRichTextChangedValueFormatPane(richTextChangedValueFormatPane); |
||||
setRichTextChangedPercentFormatPane(richTextChangedPercentFormatPane); |
||||
} |
||||
|
||||
protected double[] getRowSize(double p) { |
||||
return new double[]{p, p, p, p, p, p}; |
||||
} |
||||
|
||||
protected Component[][] getPaneComponents() { |
||||
return new Component[][]{ |
||||
new Component[]{getCategoryNameFormatPane(), null}, |
||||
new Component[]{getSeriesNameFormatPane(), null}, |
||||
new Component[]{getValueFormatPane(), null}, |
||||
new Component[]{getChangedValueFormatPane(), null}, |
||||
new Component[]{getPercentFormatPane(), null}, |
||||
new Component[]{getChangedPercentFormatPane(), null}, |
||||
}; |
||||
} |
||||
|
||||
protected Component[][] getRichTextComponents() { |
||||
return new Component[][]{ |
||||
new Component[]{getRichTextCategoryNameFormatPane(), null}, |
||||
new Component[]{getRichTextSeriesNameFormatPane(), null}, |
||||
new Component[]{getRichTextValueFormatPane(), null}, |
||||
new Component[]{getRichTextChangedValueFormatPane(), null}, |
||||
new Component[]{getRichTextPercentFormatPane(), null}, |
||||
new Component[]{getRichTextChangedPercentFormatPane(), null} |
||||
}; |
||||
} |
||||
} |
@ -1,73 +0,0 @@
|
||||
package com.fr.van.chart.wordcloud.designer.style; |
||||
|
||||
|
||||
import com.fr.design.i18n.Toolkit; |
||||
import com.fr.van.chart.designer.component.format.ChangedPercentFormatPaneWithCheckBox; |
||||
import com.fr.van.chart.designer.component.format.ChangedPercentFormatPaneWithoutCheckBox; |
||||
import com.fr.van.chart.designer.component.format.ChangedValueFormatPaneWithCheckBox; |
||||
import com.fr.van.chart.designer.component.format.ChangedValueFormatPaneWithoutCheckBox; |
||||
import com.fr.van.chart.designer.style.VanChartStylePane; |
||||
|
||||
import javax.swing.JPanel; |
||||
import java.awt.Component; |
||||
|
||||
/** |
||||
* Created by mengao on 2017/6/9. |
||||
*/ |
||||
public class VanChartWordCloudRefreshTootipContentPane extends VanChartWordCloudTooltipContentPane { |
||||
public VanChartWordCloudRefreshTootipContentPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
super(null, showOnPane); |
||||
} |
||||
|
||||
@Override |
||||
protected void initFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
super.initFormatPane(parent, showOnPane); |
||||
|
||||
changedValueFormatPane = new ChangedValueFormatPaneWithCheckBox(parent, showOnPane){ |
||||
@Override |
||||
protected String getCheckBoxText() { |
||||
return Toolkit.i18nText("Fine-Design_Chart_Change_Word_Value"); |
||||
} |
||||
}; |
||||
|
||||
changedPercentFormatPane = new ChangedPercentFormatPaneWithCheckBox(parent, showOnPane); |
||||
} |
||||
|
||||
protected void initRichTextFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
super.initRichTextFormatPane(parent, showOnPane); |
||||
|
||||
richTextChangedValueFormatPane = new ChangedValueFormatPaneWithoutCheckBox(parent, showOnPane) { |
||||
protected String getCheckBoxText() { |
||||
return Toolkit.i18nText("Fine-Design_Chart_Change_Word_Value"); |
||||
} |
||||
}; |
||||
|
||||
richTextChangedPercentFormatPane = new ChangedPercentFormatPaneWithoutCheckBox(parent, showOnPane); |
||||
} |
||||
|
||||
protected double[] getRowSize(double p){ |
||||
return new double[]{p,p,p,p,p,p}; |
||||
} |
||||
|
||||
protected Component[][] getPaneComponents(){ |
||||
return new Component[][]{ |
||||
new Component[]{categoryNameFormatPane,null}, |
||||
new Component[]{seriesNameFormatPane,null}, |
||||
new Component[]{valueFormatPane,null}, |
||||
new Component[]{changedValueFormatPane,null}, |
||||
new Component[]{percentFormatPane,null}, |
||||
new Component[]{changedPercentFormatPane,null}, |
||||
}; |
||||
} |
||||
|
||||
protected Component[][] getRichTextComponents() { |
||||
return new Component[][]{ |
||||
new Component[]{richTextCategoryNameFormatPane, null}, |
||||
new Component[]{richTextSeriesNameFormatPane, null}, |
||||
new Component[]{richTextValueFormatPane, null}, |
||||
new Component[]{richTextChangedValueFormatPane, null}, |
||||
new Component[]{richTextPercentFormatPane, null}, |
||||
new Component[]{richTextChangedPercentFormatPane, null} |
||||
}; |
||||
} |
||||
} |
Loading…
Reference in new issue