de.dante.extex.typesetter.paragraphBuilder
Class FixedParagraphShape

java.lang.Object
  extended byde.dante.extex.typesetter.paragraphBuilder.ParagraphShape
      extended byde.dante.extex.typesetter.paragraphBuilder.FixedParagraphShape

public class FixedParagraphShape
extends ParagraphShape

This paragraph shape represents a fixed block. It is aligned at 0pt on the left and by the given width on the right.

Version:
$Revision: 1.6 $
Author:
Gerd Neugebauer

Constructor Summary
FixedParagraphShape(FixedDimen theHsize)
          Creates a new object.
 
Method Summary
 FixedDimen getIndent(int index)
          Getter for the left hand margin of a certain position.
 FixedDimen getLength(int index)
          Getter for the right hand margin of a certain position.
 void setHsize(FixedDimen theHsize)
          Setter for hsize.
 
Methods inherited from class de.dante.extex.typesetter.paragraphBuilder.ParagraphShape
add, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedParagraphShape

public FixedParagraphShape(FixedDimen theHsize)
Creates a new object.

Parameters:
theHsize - the width
Method Detail

getIndent

public FixedDimen getIndent(int index)
Description copied from class: ParagraphShape
Getter for the left hand margin of a certain position. The position is given by an index into the list. If the index points past the end of th list then the last entry is repeated. If the index is negative then 0pt is returned.

Overrides:
getIndent in class ParagraphShape
Parameters:
index - the index of the position
Returns:
the left hand margin
See Also:
ParagraphShape.getIndent(int)

getLength

public FixedDimen getLength(int index)
Description copied from class: ParagraphShape
Getter for the right hand margin of a certain position. The position is given by an index into the list. If the index points past the end of th list then the last entry is repeated. If the index is negative then 0pt is returned.

Overrides:
getLength in class ParagraphShape
Parameters:
index - the index of the position
Returns:
the right hand margin
See Also:
ParagraphShape.getLength(int)

setHsize

public void setHsize(FixedDimen theHsize)
Setter for hsize.

Parameters:
theHsize - the hsize to set.