Browse Source
Merge in DESIGN/design from ~BJORN/design:release/11.0 to release/11.0 * commit 'c51b337702278e77ca5b556aedbee322ea5bd5cf': REPORT-58344 主题样式frm下的图表标题增加提示fix-lag
Bjorn
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