de.dante.extex.typesetter.paragraphBuilder
Class HangingParagraphShape

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

public class HangingParagraphShape
extends ParagraphShape

This paragraph shape represents a block with hanging indentation.

Version:
$Revision: 1.7 $
Author:
Gerd Neugebauer

Constructor Summary
HangingParagraphShape(int theHangafter, FixedDimen theHangindent, 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 setHangafter(int hangafter)
          Setter for hangafter.
 void setHangindent(FixedDimen hangindent)
          Setter for hangindent.
 void setHsize(FixedDimen hsize)
          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

HangingParagraphShape

public HangingParagraphShape(int theHangafter,
                             FixedDimen theHangindent,
                             FixedDimen theHsize)
Creates a new object.

Parameters:
theHangafter - the number of lines to start or end hanging
theHangindent - the amount of indentation
theHsize - the width of the line
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)

setHangafter

public void setHangafter(int hangafter)
Setter for hangafter.

Parameters:
hangafter - the hangafter to set.

setHangindent

public void setHangindent(FixedDimen hangindent)
Setter for hangindent.

Parameters:
hangindent - the hangindent to set.

setHsize

public void setHsize(FixedDimen hsize)
Setter for hsize.

Parameters:
hsize - the hsize to set.