src.backend
クラス TermEntry

java.lang.Object
  上位を拡張 src.backend.Entry
      上位を拡張 src.backend.TermEntry

public class TermEntry
extends Entry

作成者:
koji

コンストラクタの概要
TermEntry(Chunk chunk)
           
 
メソッドの概要
 void addFontChange(FontChange fc)
           
 void addTerminalGrouping(TerminalGrouping tg)
           
static byte[] encode(byte[] sourceText, int startIndex, int length)
          encode / decode text
 short getFlags()
           
 FontChange getFontChange(int index)
           
 java.util.List getFontChangeList()
           
 java.util.List getFontChanges()
           
 short getFontChangesCount()
           
 short getLinesPerPage()
           
 TerminalGrouping getTerminalGrouping(int gid)
           
 short getTerminalGroupingCount()
           
 java.lang.String getTextGroupingDecoded(int gid)
          get the text encoded
 int getTextLength()
           
 short getTotalLength()
           
 void insertTerminalGrouping(TerminalGrouping newGroup, int sel)
          insert terminal group (page)
 void read()
          read entry from file
 FontChange removeFontChange(int sel)
           
 TerminalGrouping removeTerminalGrouping(int sel)
           
 void setFlags(short flags)
           
 void setGroupingText(byte[] insertText, int groupingIndex)
           
 void setLinesPerPage(short linesPerPage)
           
 void setRawText(byte[] textData)
           
 void setTextWithDecoding(byte[] txt)
           
 void write()
           
 
クラス src.backend.Entry から継承されたメソッド
getChunk
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TermEntry

public TermEntry(Chunk chunk)
メソッドの詳細

read

public void read()
read entry from file


write

public void write()
オーバーライド:
クラス Entry 内の write

setRawText

public void setRawText(byte[] textData)

getTerminalGrouping

public TerminalGrouping getTerminalGrouping(int gid)
                                     throws OutOfIndexException
例外:
OutOfIndexException

addTerminalGrouping

public void addTerminalGrouping(TerminalGrouping tg)

getFlags

public short getFlags()

setFlags

public void setFlags(short flags)

getFontChanges

public java.util.List getFontChanges()

getFontChangesCount

public short getFontChangesCount()

getTerminalGroupingCount

public short getTerminalGroupingCount()

getLinesPerPage

public short getLinesPerPage()

getTextGroupingDecoded

public java.lang.String getTextGroupingDecoded(int gid)
                                        throws OutOfIndexException
get the text encoded

パラメータ:
gid -
戻り値:
例外:
OutOfIndexException

setTextWithDecoding

public void setTextWithDecoding(byte[] txt)

setGroupingText

public void setGroupingText(byte[] insertText,
                            int groupingIndex)
                     throws OutOfIndexException
パラメータ:
insertText -
groupingIndex -
例外:
OutOfIndexException

encode

public static byte[] encode(byte[] sourceText,
                            int startIndex,
                            int length)
encode / decode text

パラメータ:
sourceText - the source text raw or encoded bytes
sourceLength - the length of source text
startIndex - offset
length - the length of text you want
戻り値:
encoded / decoded text

getTextLength

public int getTextLength()

getTotalLength

public short getTotalLength()

setLinesPerPage

public void setLinesPerPage(short linesPerPage)

getFontChange

public FontChange getFontChange(int index)
                         throws OutOfIndexException
例外:
OutOfIndexException

addFontChange

public void addFontChange(FontChange fc)

insertTerminalGrouping

public void insertTerminalGrouping(TerminalGrouping newGroup,
                                   int sel)
insert terminal group (page)

パラメータ:
newGroup -
sel -

removeFontChange

public FontChange removeFontChange(int sel)
                            throws OutOfIndexException
例外:
OutOfIndexException

removeTerminalGrouping

public TerminalGrouping removeTerminalGrouping(int sel)
                                        throws OutOfIndexException
例外:
OutOfIndexException

getFontChangeList

public java.util.List getFontChangeList()