Unified Typesetting API M1-20040817

de.inghuimische.uta.linebreaking
Class BreakpointFactory

java.lang.Object
  extended byde.inghuimische.uta.linebreaking.BreakpointFactory

public class BreakpointFactory
extends Object

Implementing a singleton pattern this factory associates an item to exactly one breakpoint. If you have to implent a rather complex linebreak algorithm you may find the class BreakpointUtil useful.

Author:
Christian Ziesemer
See Also:
BreakpointUtil

Constructor Summary
BreakpointFactory()
           
 
Method Summary
 Breakpoint getBreakpoint(Item prevItem)
          Ensures that exactly one breakpoint is associated with a given item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreakpointFactory

public BreakpointFactory()
Method Detail

getBreakpoint

public Breakpoint getBreakpoint(Item prevItem)
Ensures that exactly one breakpoint is associated with a given item. The item passed to this method may be null, in this case the returned breakpoint is the inital breakpoint at the beginning of the paragraph having no previous item.

Parameters:
prevItem - The item before the breakpoint.
Returns:
The requested breakpoint.

Unified Typesetting API M1-20040817


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