Unified Typesetting API M1-20040817

de.inghuimische.uta.linebreaking
Class DefaultWidth

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

public class DefaultWidth
extends AbstractWidth

Default implementation of the width interface.

Author:
Christian Ziesemer

Field Summary
protected  double maximumWidth
           
protected  double minimumWidth
           
 
Fields inherited from class de.inghuimische.uta.linebreaking.AbstractWidth
preferredWidth
 
Constructor Summary
DefaultWidth(double immutableWidth)
          Creates an immutable width.
DefaultWidth(double aMinimumWidth, double aPreferredWidth, double aMaximumWidth)
          Creates a new instance with the given min/opt/max values.
 
Method Summary
 double getMaximumWidth()
          Returns the preferred width if not overridden.
 double getMinimumWidth()
          Returns the preferred width if not overridden.
 
Methods inherited from class de.inghuimische.uta.linebreaking.AbstractWidth
getPreferredWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maximumWidth

protected double maximumWidth

minimumWidth

protected double minimumWidth
Constructor Detail

DefaultWidth

public DefaultWidth(double immutableWidth)
Creates an immutable width.

Parameters:
immutableWidth - The immutable width.

DefaultWidth

public DefaultWidth(double aMinimumWidth,
                    double aPreferredWidth,
                    double aMaximumWidth)
Creates a new instance with the given min/opt/max values.

Parameters:
aMinimumWidth - The minimum width
aPreferredWidth - The preferred width
aMaximumWidth - The maximum width
Method Detail

getMaximumWidth

public double getMaximumWidth()
Description copied from class: AbstractWidth
Returns the preferred width if not overridden.

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

getMinimumWidth

public double getMinimumWidth()
Description copied from class: AbstractWidth
Returns the preferred width if not overridden.

Specified by:
getMinimumWidth in interface Width
Overrides:
getMinimumWidth in class AbstractWidth
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.