Unified Typesetting API M1-20040817

de.inghuimische.uta.linebreaking
Class AbstractBreakpoint

java.lang.Object
  extended byde.inghuimische.uta.linebreaking.AbstractBreakpoint
All Implemented Interfaces:
Breakpoint
Direct Known Subclasses:
DefaultBreakpoint

public abstract class AbstractBreakpoint
extends Object
implements Breakpoint

Abstract breakpoint which implements getDemerits(Breakpoint).

Author:
Christian Ziesemer

Constructor Summary
AbstractBreakpoint()
           
 
Method Summary
 double getDemerits(Breakpoint previousBreakpoint)
          The calculation of the demerits must be done by the Line linking previousBreakpoint with this one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.inghuimische.uta.linebreaking.Breakpoint
addPreviousBreakpoint, getItem, getLine, getPreviousBreakpoints
 

Constructor Detail

AbstractBreakpoint

public AbstractBreakpoint()
Method Detail

getDemerits

public double getDemerits(Breakpoint previousBreakpoint)
The calculation of the demerits must be done by the Line linking previousBreakpoint with this one.

Specified by:
getDemerits in interface Breakpoint
Parameters:
previousBreakpoint - The previous breakpoint
Returns:
The demerits occurring between previous breakpoint and this one.

Unified Typesetting API M1-20040817


An inghuimische.de project.
Copyright (C) 2004 Christian Ziesemer; See the Mozilla Public License for more details.