forked from fanruan/finekit
richie
5 years ago
1 changed files with 33 additions and 0 deletions
@ -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…
Reference in new issue