|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectonbon.bx06.utils.TextBinary
public class TextBinary
文字图文工具。
| 嵌套类摘要 | |
|---|---|
static class |
TextBinary.Alignment
水平与垂直对齐方式。 |
static class |
TextBinary.BreakType
换行处理方式。 |
| 构造方法摘要 | |
|---|---|
TextBinary(int width,
int height)
建构子。 |
|
| 方法摘要 | |
|---|---|
BufferedImage |
blank()
產生空白页。 |
Color |
getBackground()
取得背景色。 |
Font |
getFont()
取得字型。 |
Color |
getForeground()
取得前景色。 |
int |
getHeight()
取得高度。 |
int |
getWidth()
取得宽度。 |
List<BufferedImage> |
horizontalMoving(String text,
TextBinary.Alignment verticalAlignment)
将播放效果为水平连移的文字分页。 |
List<BufferedImage> |
linePaging(List<String> value,
TextBinary.Alignment verticalAlignment)
單行文字组分页。 |
List<BufferedImage> |
linePaging(String value,
TextBinary.Alignment verticalAlignment)
單行文字组分页。 |
List<BufferedImage> |
paging(List<String> values,
TextBinary.Alignment horizontalAlignment,
TextBinary.Alignment verticalAlignment,
int lineHeight)
多行文字组分页。 |
List<BufferedImage> |
paging(String text,
TextBinary.Alignment horizontalAlignment,
TextBinary.Alignment verticalAlignment,
int lineHeight)
多行文字分页。 |
List<String> |
read(String filePath,
String encoding,
TextBinary.BreakType breakType)
读取纯文字档案内容。 |
void |
setBackground(Color background)
设定背景色。 |
void |
setFont(Font font)
设定字型。 |
void |
setForeground(Color foreground)
设定前景色。 |
void |
setHeight(int height)
设定高度。 |
void |
setWidth(int width)
设定宽度。 |
List<String> |
split(String text)
配合屏幕寬度與換行符號,把文字切割。 |
static String[] |
splitBreak(String text)
把文字切割。 |
List<BufferedImage> |
verticalMoving(List<String> values,
TextBinary.Alignment horizontalAlignment,
int lineHeight)
将播放效果为垂直连移的文字组分页。 |
List<BufferedImage> |
verticalMoving(String text,
TextBinary.Alignment horizontalAlignment,
int lineHeight)
将播放效果为垂直连移的文字分页。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TextBinary(int width,
int height)
width - 宽度。height - 高度。| 方法详细信息 |
|---|
public Font getFont()
public void setFont(Font font)
font - 字型。public int getWidth()
public void setWidth(int width)
width - 宽度。public int getHeight()
public void setHeight(int height)
height - 高度。public Color getBackground()
public void setBackground(Color background)
background - 背景色。public Color getForeground()
public void setForeground(Color foreground)
foreground - 前景色。
public List<String> read(String filePath,
String encoding,
TextBinary.BreakType breakType)
throws Exception
filePath - 档案路径。encoding - 编码。breakType - 換行處理。
Exception - 读取发生失败。public BufferedImage blank()
public List<BufferedImage> linePaging(List<String> value,
TextBinary.Alignment verticalAlignment)
value - 文字组。verticalAlignment - 垂直对齐方式。lineHeight - 行高。
public List<BufferedImage> linePaging(String value,
TextBinary.Alignment verticalAlignment)
value - 文字组。verticalAlignment - 垂直对齐方式。
public List<BufferedImage> paging(String text,
TextBinary.Alignment horizontalAlignment,
TextBinary.Alignment verticalAlignment,
int lineHeight)
text - 文字。horizontalAlignment - 水平对齐方式。verticalAlignment - 垂直对齐方式。lineHeight - 行高。
public List<BufferedImage> paging(List<String> values,
TextBinary.Alignment horizontalAlignment,
TextBinary.Alignment verticalAlignment,
int lineHeight)
values - 文字组。horizontalAlignment - 水平对齐方式。verticalAlignment - 垂直对齐方式。lineHeight - 行高。
public List<BufferedImage> horizontalMoving(String text,
TextBinary.Alignment verticalAlignment)
text - 文字。verticalAlignment - 垂直对齐方式。lineHeight - 行高。
public List<BufferedImage> verticalMoving(String text,
TextBinary.Alignment horizontalAlignment,
int lineHeight)
text - 文字。horizontalAlignment - 水平对齐方式。lineHeight - 行高。
public List<BufferedImage> verticalMoving(List<String> values,
TextBinary.Alignment horizontalAlignment,
int lineHeight)
values - 文字组。horizontalAlignment - 水平对齐方式。lineHeight - 行高。
public static String[] splitBreak(String text)
text - 文字。
public List<String> split(String text)
text - 文字。
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||