de.uni_paderborn.fujaba.app
Class Block

java.lang.Object
  extended byde.uni_paderborn.fujaba.app.Block

class Block
extends java.lang.Object

The class Block provides a container for a Textblock

Version:
$Revision: 1.27 $
Author:
$Author: lowende $

Field Summary
private  java.util.Vector blockLines
          The vector that holds the formatted text lines
private  int height
          Contains the height in pixels
private  int subtitleLine
          Contains the number of subtitle lines
private  int titleCount
          Contains the number of headlines
 
Constructor Summary
Block()
          Constructor for Block Creates the vector blockLines
 
Method Summary
 void addLine(java.lang.String s)
          Add a line to the block
 int getBlockHeight()
          Gets the block height in pixel
 java.lang.String getLine(int i)
          Gets a line from the block
 int getLineCount()
          Returns the number of lines in the block
 int getSubtitleLine()
          Gets the number of subscription lines from the block
 int getTitleCount()
          Gets the number of title lines from the block
 void setBlockHeight(int h)
          Sets the block height in pixel
 void setSubtitleLine(int s)
          Sets the number of subscription lines from the block
 void setTitleCount(int c)
          Sets the number of title lines of the block
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockLines

private java.util.Vector blockLines
The vector that holds the formatted text lines


height

private int height
Contains the height in pixels


titleCount

private int titleCount
Contains the number of headlines


subtitleLine

private int subtitleLine
Contains the number of subtitle lines

Constructor Detail

Block

public Block()
Constructor for Block Creates the vector blockLines

Method Detail

addLine

public void addLine(java.lang.String s)
Add a line to the block

Parameters:
s - The object added.

getLine

public java.lang.String getLine(int i)
Gets a line from the block

Parameters:
i - No description provided
Returns:
the text line at index i

getLineCount

public int getLineCount()
Returns the number of lines in the block

Returns:
number of lines

setBlockHeight

public void setBlockHeight(int h)
Sets the block height in pixel

Parameters:
h - The new blockHeight value

getBlockHeight

public int getBlockHeight()
Gets the block height in pixel

Returns:
height in pixel

setTitleCount

public void setTitleCount(int c)
Sets the number of title lines of the block

Parameters:
c - The new titleCount value

getTitleCount

public int getTitleCount()
Gets the number of title lines from the block

Returns:
number of title lines

setSubtitleLine

public void setSubtitleLine(int s)
Sets the number of subscription lines from the block

Parameters:
s - The new subtitleLine value

getSubtitleLine

public int getSubtitleLine()
Gets the number of subscription lines from the block

Returns:
number of subscr lines