|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.app.BlockContainer
The class BlockContainer loads and stores a complete text for scrolling purposes
Field Summary | |
private java.util.Vector |
blockTable
The vector that contains all blocks of the container |
private int |
width
Contains the width in pixel of all blocks in the container |
private int |
wordEnd
No comment provided by developer, please add a comment to improve documentation. |
private int |
wordStart
Start and ending point of the current word in the readbuffer |
Constructor Summary | |
BlockContainer(int w)
Constructor of BlockContainer |
Method Summary | |
Block |
getBlock(int i)
Returns the block at the specified position from the container |
int |
getBlockCount()
Returns the number of blocks in the container |
private java.lang.String |
getNextWord(java.lang.String scriptLine)
scans the scriptLine buffer for the next word !!! |
int |
getWidth()
Returns the width in pixel of all blocks in the container |
boolean |
readScript(java.lang.String script,
java.awt.Font titleF,
java.awt.Font textF,
java.awt.Font subtitleF)
Reads and parses a script file, formats the text and stores it into Blocks in BlockContainers blockTable |
private void |
resetGNW()
resets the scriptLine buffer scan !!! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector blockTable
private int width
private int wordStart
private int wordEnd
Constructor Detail |
public BlockContainer(int w)
w
- the width of all blocks in the containerMethod Detail |
private java.lang.String getNextWord(java.lang.String scriptLine)
scriptLine
- No description provided
private void resetGNW()
public boolean readScript(java.lang.String script, java.awt.Font titleF, java.awt.Font textF, java.awt.Font subtitleF) throws java.lang.Exception
script
- the script filetitleF
- Font for the TitlestextF
- Font for normal TextsubtitleF
- Font for subscriptions
java.lang.Exception
- Exception description not providedpublic int getWidth()
public Block getBlock(int i)
i
- index of block to return
public int getBlockCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |