public class TextBxPage extends BxPage
Constructor and Description |
---|
TextBxPage()
建构子。
预设条件:字型:宋体 16;文字颜色:白;背景色:黑;換行不換頁。 |
TextBxPage(Font font)
建构子。
预设条件:文字颜色:白;背景色:黑;換行不換頁。 |
TextBxPage(Font font,
Color foreground,
Color background)
建构子。
预设条件:換行不換頁。
|
TextBxPage(String text)
建构子。
预设条件:字型:宋体 16;文字颜色:白;背景色:黑;換行不換頁。 |
TextBxPage(String text,
Font font)
建构子。
预设条件:文字颜色:红;背景色:黑;換行不換頁。 |
TextBxPage(String text,
Font font,
Color foreground,
Color background)
建构子。
预设条件:換行不換頁。
|
TextBxPage(String text,
Font font,
Color foreground,
Color background,
boolean lineBreak)
建构子。
|
Modifier and Type | Method and Description |
---|---|
void |
accept(onbon.bx05.message.area.TextCaptionArea area,
Bx5GScreenProfile screenProfile)
將资料填入指定的图文区。。
|
Color |
getBackground()
取得背景色。
|
Font |
getFont()
取得字型。
|
Color |
getForeground()
取得文字景色。
|
int |
getHeadTailInterval()
取得首尾相连间隔。
|
TextBinary.Alignment |
getHorizontalAlignment()
取得水平对齐方式。
|
protected byte |
getPageStyle()
取得数据类型。
|
String |
getText()
取得文字讯息。
|
TextBinary.Alignment |
getVerticalAlignment()
取得垂直对齐方式。
|
boolean |
isNewLineNewPage()
取得是否换行即换页。
|
TextBxPage |
newLine(String text)
新增一行文字。
|
List<BufferedImage> |
outputImages(TextCaptionBxArea area)
輸出图像。
|
void |
preview(TextCaptionBxArea area,
Graphics2D g2d)
绘制检视图。
|
void |
setBackground(Color background)
设定背景色。
|
void |
setFont(Font font)
设定字型。
|
void |
setForeground(Color foreground)
设定文字景色。
|
void |
setHeadTailInterval(int headTailInterval)
设定首尾相连间隔。
-2:前後訊息被隔離。 |
void |
setHorizontalAlignment(TextBinary.Alignment horizontalAlignment)
设定水平对齐方式。
|
void |
setNewLineNewPage(boolean newLineNewPage)
设定是否换行即换页。
|
void |
setText(String text)
设定文字讯息。
|
void |
setVerticalAlignment(TextBinary.Alignment verticalAlignment)
设定垂直对齐方式。
|
getClearMode, getDisplayStyle, getRepeatTime, getSpeed, getStayTime, getValidLen, setClearMode, setDisplayStyle, setRepeatTime, setSpeed, setStayTime, setValidLen
public TextBxPage()
public TextBxPage(String text)
text
- 文字讯息。public TextBxPage(Font font)
font
- 字型。public TextBxPage(Font font, Color foreground, Color background)
font
- 字型。foreground
- 文字颜色。background
- 背景颜色。public TextBxPage(String text, Font font)
text
- 文字讯息。font
- 字型。public TextBxPage(String text, Font font, Color foreground, Color background)
text
- 文字讯息。font
- 字型。foreground
- 文字颜色。background
- 背景颜色。public TextBxPage newLine(String text)
text
- 文字。public TextBinary.Alignment getHorizontalAlignment()
public void setHorizontalAlignment(TextBinary.Alignment horizontalAlignment)
horizontalAlignment
- 水平对齐方式。public void setVerticalAlignment(TextBinary.Alignment verticalAlignment)
verticalAlignment
- 垂直对齐方式。public TextBinary.Alignment getVerticalAlignment()
public boolean isNewLineNewPage()
public void setNewLineNewPage(boolean newLineNewPage)
newLineNewPage
- 是否换行即换页。public String getText()
public void setText(String text)
text
- 文字讯息。public Color getBackground()
public void setBackground(Color background)
background
- 背景色。public Color getForeground()
public void setForeground(Color foreground)
foreground
- 文字景色。public Font getFont()
public void setFont(Font font)
font
- 字型。public int getHeadTailInterval()
public void setHeadTailInterval(int headTailInterval)
headTailInterval
- 首尾相连间隔。public List<BufferedImage> outputImages(TextCaptionBxArea area)
area
- 图文区域。public void preview(TextCaptionBxArea area, Graphics2D g2d)
BxPage
public void accept(onbon.bx05.message.area.TextCaptionArea area, Bx5GScreenProfile screenProfile)
BxPage
protected byte getPageStyle()
BxPage
getPageStyle
in class BxPage
Copyright © 2020 onbon4j. All rights reserved.