public class BaseHTMLWriterUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static Tag |
createEmptyImageTag4RepoWithoutCheckVml(java.awt.Dimension dimension,
Repository repo)
根据一个指定的尺寸和报表上下文生成一个空的图片标签
|
static Tag |
createImageTag4RepoWithCheckVml(java.awt.Image image,
java.awt.Dimension dimension,
Repository repo)
根据原始的图片和指定的尺寸以及报表上下文生成图片的HTML标签。
|
static Tag |
createImageTag4RepoWithoutCheckVml(java.awt.Image image,
java.awt.Dimension dimension,
Repository repo)
根据原始的图片和指定的尺寸以及报表上下文生成图片的HTML标签,该方法只生成一个简单的img标签
|
static Tag |
createImageTagFromParentTag4RepoWithCheckVml(java.awt.Image image,
java.awt.Dimension dimension,
Repository repo,
Tag parentTag) |
static JSONObject |
jsonBackground(Background background,
Repository repo)
生成JSON类型的背景表示,用于浏览器端
|
static void |
writeBackground(Tag tag,
Background background,
java.awt.Dimension dimension,
boolean isRepeat,
Repository repo)
在指定的区域画背景
|
static JSONObject |
writeJSONBackground(Background background,
Repository repo,
int reportIndex,
int width,
int height,
boolean isRepeat) |
public static JSONObject jsonBackground(Background background, Repository repo)
background
- 背景repo
- 报表上下文public static void writeBackground(Tag tag, Background background, java.awt.Dimension dimension, boolean isRepeat, Repository repo)
tag
- 要画背景的区域,用是一个HTML标签表示background
- 背景dimension
- 背景的大小isRepeat
- 背景是否重复repo
- 报表上下文public static JSONObject writeJSONBackground(Background background, Repository repo, int reportIndex, int width, int height, boolean isRepeat)
public static Tag createImageTag4RepoWithCheckVml(java.awt.Image image, java.awt.Dimension dimension, Repository repo)
image
- 原始图片dimension
- 指定的尺寸repo
- 报表上下文public static Tag createImageTagFromParentTag4RepoWithCheckVml(java.awt.Image image, java.awt.Dimension dimension, Repository repo, Tag parentTag)
public static Tag createImageTag4RepoWithoutCheckVml(java.awt.Image image, java.awt.Dimension dimension, Repository repo)
image
- 原始图片dimension
- 指定尺寸repo
- 报表上下文public static Tag createEmptyImageTag4RepoWithoutCheckVml(java.awt.Dimension dimension, Repository repo)
dimension
- 空img标签的尺寸repo
- 报表上下文