Unified Typesetting API M1-20040817

de.inghuimische.uta.linebreaking
Class AbstractWidth

java.lang.Object
  extended byde.inghuimische.uta.linebreaking.AbstractWidth
All Implemented Interfaces:
Width
Direct Known Subclasses:
DefaultWidth

public abstract class AbstractWidth
extends Object
implements Width

An abstract implementation of the Width interface where all three widths are equal to the preferred width.

Author:
Christian Ziesemer

Field Summary
protected  double preferredWidth
          Holds the preferred width.
 
Constructor Summary
AbstractWidth()
           
 
Method Summary
 double getMaximumWidth()
          Returns the preferred width if not overridden.
 double getMinimumWidth()
          Returns the preferred width if not overridden.
 double getPreferredWidth()
          Returns the preferred width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

preferredWidth

protected double preferredWidth
Holds the preferred width.

Constructor Detail

AbstractWidth

public AbstractWidth()
Method Detail

getPreferredWidth

public double getPreferredWidth()
Returns the preferred width.

Specified by:
getPreferredWidth in interface Width
Returns:
The preferred width.

getMaximumWidth

public double getMaximumWidth()
Returns the preferred width if not overridden.

Specified by:
getMaximumWidth in interface Width
Returns:
The preferred width if not overridden.

getMinimumWidth

public double getMinimumWidth()
Returns the preferred width if not overridden.

Specified by:
getMinimumWidth in interface Width
Returns:
The preferred width if not overridden.

Unified Typesetting API M1-20040817


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