onbon.bx06.area.page
Class TextFileBxPage

java.lang.Object
  extended by onbon.bx06.area.page.BxPage
      extended by onbon.bx06.area.page.TextFileBxPage

public class TextFileBxPage
extends BxPage

纯文字档案页面。

Author:
ONBON

Constructor Summary
TextFileBxPage(String filePath)
          建构子。
预设条件:字型:宋体 16;文字颜色:白;背景色:黑。
TextFileBxPage(String filePath, Font font)
          建构子。
预设条件:文字颜色:白;背景色:黑。
TextFileBxPage(String filePath, Font font, Color foreground, Color background)
          建构子。
 
Method Summary
 void accept(onbon.bx06.message.area.AbstractTextCaptionArea area, Bx6GScreenProfile screenProfile, ProgramDataBxFile dataFile)
          將资料填入指定的图文区。。
 Color getBackground()
          取得背景色。
 TextBinary.BreakType getBreakType()
          取得换行处理方式。
 String getEncoding()
          取得文字档案编码。
 String getFilePath()
          取得纯文字档案。
 Font getFont()
          取得字型。
 Color getForeground()
          取得文字景色。
 int getHeadTailInterval()
          取得首尾相连间隔。
 TextBinary.Alignment getHorizontalAlignment()
          取得水平对齐方式。
 int getLineHeight()
           
protected  byte getPageStyle()
          取得数据类型。
 TextBinary.Alignment getVerticalAlignment()
          取得垂直对齐方式。
 void preview(AbstractTextCaptionBxArea area, Graphics2D g2d)
          绘制检视图。
 void setBackground(Color background)
          设定背景色。
 void setBreakType(TextBinary.BreakType breakType)
          设定换行处理方式
 void setEncoding(String encoding)
          设定文字档案编码。
 void setFilePath(String filePath)
          设定纯文字档案。
 void setFont(Font font)
          设定字型。
 void setForeground(Color foreground)
          设定文字景色。
 void setHeadTailInterval(int headTailInterval)
          设定首尾相连间隔。
-2:前後訊息被隔離。
 void setHorizontalAlignment(TextBinary.Alignment horizontalAlignment)
          设定水平水平对齐方式。
 void setLineHeight(int lineHeight)
           
 void setVerticalAlignment(TextBinary.Alignment verticalAlignment)
          设定垂直对齐方式。
 
Methods inherited from class onbon.bx06.area.page.BxPage
getBgValidFlag, getClearMode, getDisplayStyle, getFrameRate, getRepeatTime, getSoundFlag, getSpeed, getStayTime, getValidLen, setBgValidFlag, setClearMode, setDisplayStyle, setFrameRate, setRepeatTime, setSoundFlag, setSpeed, setStayTime, setValidLen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileBxPage

public TextFileBxPage(String filePath)
建构子。
预设条件:字型:宋体 16;文字颜色:白;背景色:黑。

Parameters:
filePath - 纯文字档案。

TextFileBxPage

public TextFileBxPage(String filePath,
                      Font font)
建构子。
预设条件:文字颜色:白;背景色:黑。

Parameters:
filePath - 纯文字档案。
font - 字型。

TextFileBxPage

public TextFileBxPage(String filePath,
                      Font font,
                      Color foreground,
                      Color background)
建构子。

Parameters:
filePath - 纯文字档案。
font - 字型。
foreground - 文字颜色。
background - 背景颜色。
Method Detail

getLineHeight

public int getLineHeight()

setLineHeight

public void setLineHeight(int lineHeight)

getEncoding

public String getEncoding()
取得文字档案编码。

Returns:
文字档案编码。

setEncoding

public void setEncoding(String encoding)
设定文字档案编码。

Parameters:
encoding - 文字档案编码。

getBreakType

public TextBinary.BreakType getBreakType()
取得换行处理方式。

Returns:
换行处理方式。

setBreakType

public void setBreakType(TextBinary.BreakType breakType)
设定换行处理方式

Parameters:
breakType - 换行处理方式。

getHorizontalAlignment

public TextBinary.Alignment getHorizontalAlignment()
取得水平对齐方式。

Returns:
水平对齐方式。

setHorizontalAlignment

public void setHorizontalAlignment(TextBinary.Alignment horizontalAlignment)
设定水平水平对齐方式。

Parameters:
horizontalAlignment - 水平对齐方式。

getVerticalAlignment

public TextBinary.Alignment getVerticalAlignment()
取得垂直对齐方式。

Returns:
垂直对齐方式。

setVerticalAlignment

public void setVerticalAlignment(TextBinary.Alignment verticalAlignment)
设定垂直对齐方式。

Parameters:
verticalAlignment - 垂直对齐方式。

getFilePath

public String getFilePath()
取得纯文字档案。

Returns:
纯文字档案。

setFilePath

public void setFilePath(String filePath)
设定纯文字档案。

Parameters:
filePath - 纯文字档案。

getBackground

public Color getBackground()
取得背景色。

Returns:
背景色。

setBackground

public void setBackground(Color background)
设定背景色。

Parameters:
background - 背景色。

getForeground

public Color getForeground()
取得文字景色。

Returns:
文字景色。

setForeground

public void setForeground(Color foreground)
设定文字景色。

Parameters:
foreground - 文字景色。

getFont

public Font getFont()
取得字型。

Returns:
字型。

setFont

public void setFont(Font font)
设定字型。

Parameters:
font - 字型。

getHeadTailInterval

public int getHeadTailInterval()
取得首尾相连间隔。

Returns:
首尾相连间隔。

setHeadTailInterval

public void setHeadTailInterval(int headTailInterval)
设定首尾相连间隔。
-2:前後訊息被隔離。

Parameters:
headTailInterval - 前後訊息間隔的像素。。

preview

public void preview(AbstractTextCaptionBxArea area,
                    Graphics2D g2d)
Description copied from class: BxPage
绘制检视图。

Specified by:
preview in class BxPage
Parameters:
area - 图文区。
g2d - 绘图区。

accept

public void accept(onbon.bx06.message.area.AbstractTextCaptionArea area,
                   Bx6GScreenProfile screenProfile,
                   ProgramDataBxFile dataFile)
Description copied from class: BxPage
將资料填入指定的图文区。。

Specified by:
accept in class BxPage
Parameters:
area - 填入的图文区。
screenProfile - 屏幕规格。
dataFile - 文件資料。

getPageStyle

protected byte getPageStyle()
Description copied from class: BxPage
取得数据类型。

Specified by:
getPageStyle in class BxPage
Returns:
数据类型。


Copyright © 2020 onbon. All rights reserved.