Browse Source

文档和注释

remotes/1611766341912730171/master
richie 5 years ago
parent
commit
6d0c39ccd2
  1. 33
      src/main/java/com/fanruan/api/report/StyleKit.java

33
src/main/java/com/fanruan/api/report/StyleKit.java

@ -0,0 +1,33 @@
package com.fanruan.api.report;
import com.fr.base.Style;
import com.fr.stable.xml.XMLPrintWriter;
import com.fr.xml.SynchronizedStyleList;
/**
* @author richie
* @version 10.0
* Created by richie on 2019/10/29
* 样式持久化相关工具类
*/
public class StyleKit {
/**
* 持久化样式设置
*
* @param writer xml写入器
*/
public static void xmlizeStyleList(XMLPrintWriter writer) {
SynchronizedStyleList.getSynchronizedStyleList().xmlizeStyleList(writer);
}
/**
* 获取指定样式的序列
*
* @param style 指定的样式
* @return 序列
*/
public static int indexOfStyle(Style style) {
return SynchronizedStyleList.getSynchronizedStyleList().indexOfStyle(style);
}
}
Loading…
Cancel
Save