forked from fanruan/design
白岳
3 years ago
4 changed files with 69 additions and 4 deletions
@ -0,0 +1,16 @@
|
||||
package com.fr.design.mainframe.theme.edit; |
||||
|
||||
import com.fr.design.mainframe.theme.edit.chart.ChartTitleAndBackgroundStyleFormPane; |
||||
import com.fr.design.mainframe.theme.edit.chart.ChartTitleAndBackgroundStylePane; |
||||
|
||||
/** |
||||
* @author Bjorn |
||||
* @version 10.0 |
||||
* Created by Bjorn on 2021-08-30 |
||||
*/ |
||||
public class ChartStyleFormEditPane extends ChartStyleEditPane { |
||||
|
||||
protected ChartTitleAndBackgroundStylePane createChartTitleAndBackgroundStylePane() { |
||||
return new ChartTitleAndBackgroundStyleFormPane(); |
||||
} |
||||
} |
@ -0,0 +1,36 @@
|
||||
package com.fr.design.mainframe.theme.edit.chart; |
||||
|
||||
import com.fr.design.gui.ilable.UILabel; |
||||
import com.fr.design.i18n.Toolkit; |
||||
|
||||
import java.awt.Color; |
||||
import java.awt.Component; |
||||
|
||||
/** |
||||
* @author Bjorn |
||||
* @version 10.0 |
||||
* Created by Bjorn on 2021-08-30 |
||||
*/ |
||||
public class ChartTitleAndBackgroundStyleFormPane extends ChartTitleAndBackgroundStylePane { |
||||
|
||||
private UILabel tooltipLabel; |
||||
|
||||
protected void initComponents() { |
||||
super.initComponents(); |
||||
tooltipLabel = new UILabel("<html>" + Toolkit.i18nText("Fine-Design_Chart_Title_Background_Tooltip") + "</html>"); |
||||
tooltipLabel.setForeground(new Color(153, 153, 153)); |
||||
} |
||||
|
||||
protected Component[][] getComponent() { |
||||
Component[][] component = super.getComponent(); |
||||
Component[][] newComponent = new Component[component.length + 2][]; |
||||
System.arraycopy(component, 0, newComponent, 2, component.length); |
||||
newComponent[0] = new Component[]{null, null}; |
||||
newComponent[1] = new Component[]{tooltipLabel, null}; |
||||
return newComponent; |
||||
} |
||||
|
||||
protected double[] getRows(double p) { |
||||
return new double[]{p, p, p, p, p, p, p}; |
||||
} |
||||
} |
Loading…
Reference in new issue