You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
3 years ago
|
package com.fr.design.fun;
|
||
|
|
||
|
import com.fr.base.chart.BaseChartCollection;
|
||
|
import com.fr.chartx.attr.ChartProvider;
|
||
|
import com.fr.general.FRFont;
|
||
|
import com.fr.report.cell.CellElement;
|
||
|
import com.fr.stable.fun.mark.Selectable;
|
||
|
|
||
|
import java.awt.Font;
|
||
|
|
||
|
/**
|
||
|
* 主要用于fvs报表块内元素默认值的调整,以达到所见所得效果,后续fvs内置后删除
|
||
|
*/
|
||
|
public interface DefaultValueAdjustProvider extends Selectable {
|
||
|
String MARK_STRING = "DefaultValueAdjustProvider";
|
||
|
int CURRENT_LEVEL = 1;
|
||
|
|
||
|
/**
|
||
|
* 调整单元格对象默认值
|
||
|
*
|
||
|
* @param cellElement
|
||
|
*/
|
||
|
void adjustCellElement(CellElement cellElement);
|
||
|
|
||
|
/**
|
||
|
* 调整富文本默认值
|
||
|
*
|
||
|
* @param fontSize
|
||
|
* @return
|
||
|
*/
|
||
|
int adjustRichTextTransform(int fontSize, double transformedFontSize);
|
||
|
|
||
|
/**
|
||
|
* 调整ChartCollection
|
||
|
*
|
||
|
* @param chartCollection
|
||
|
*/
|
||
|
void adjustChartCollectionStyle(BaseChartCollection chartCollection);
|
||
|
|
||
|
/**
|
||
|
* 调整图表
|
||
|
*
|
||
|
* @param chartProvider
|
||
|
*/
|
||
|
void adjustChart(ChartProvider chartProvider);
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 转成当前分辨率下显示的font
|
||
|
* @param font
|
||
|
* @param resolution
|
||
|
* @return
|
||
|
*/
|
||
|
Font transformFontByResolution(FRFont font, int resolution);
|
||
|
|
||
|
}
|