Unified Typesetting API M1-20040817

de.inghuimische.uta
Class SimpleLine

java.lang.Object
  extended byde.inghuimische.uta.AbstractLine
      extended byde.inghuimische.uta.SimpleLine
All Implemented Interfaces:
Line

public class SimpleLine
extends AbstractLine

A simple bean-style implementation of the Line interface.

Author:
Christian Ziesemer

Field Summary
protected  Item firstItem
           
protected  Item lastItem
           
 
Fields inherited from class de.inghuimische.uta.AbstractLine
DEFAULT_LINE_PENALTY, linePenalty, lineWidth, preferredLineWidth
 
Constructor Summary
SimpleLine()
           
 
Method Summary
 double getAdjustmentRatio()
          Returns the adjustment ratio, if not set explicitly this is 0.
 Item getFirstItem()
          Returns the first item of this line.
 Item getLastItem()
          Returns the last item of this line.
 void setAdjustmentRatio(double adjustmentRatio)
          Sets the adjustmentRatio.
 void setFirstItem(Item firstItem)
          Sets the firstItem in this line.
 void setLastItem(Item lastItem)
          Sets the lastItem in this line.
 void setWidth(double actualWidth)
          Sets the width of the line.
 
Methods inherited from class de.inghuimische.uta.AbstractLine
getBadness, getDemerits, getLinePenalty, getOpticalDensity, getPreferredWidth, getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstItem

protected Item firstItem

lastItem

protected Item lastItem
Constructor Detail

SimpleLine

public SimpleLine()
Method Detail

getFirstItem

public Item getFirstItem()
Description copied from interface: Line
Returns the first item of this line.

Returns:
The first item of this line.

getLastItem

public Item getLastItem()
Description copied from interface: Line
Returns the last item of this line.

Returns:
The last item of this line.

setFirstItem

public void setFirstItem(Item firstItem)
Sets the firstItem in this line.

Parameters:
firstItem - The firstItem to set.

setLastItem

public void setLastItem(Item lastItem)
Sets the lastItem in this line.

Parameters:
lastItem - The lastItem to set.

setWidth

public void setWidth(double actualWidth)
Sets the width of the line.

Parameters:
actualWidth - The width to set.

setAdjustmentRatio

public void setAdjustmentRatio(double adjustmentRatio)
Sets the adjustmentRatio.

Parameters:
adjustmentRatio - The adjustmentRatio to set.

getAdjustmentRatio

public double getAdjustmentRatio()
Returns the adjustment ratio, if not set explicitly this is 0.

Specified by:
getAdjustmentRatio in class AbstractLine
Returns:
The adjustment ratio.

Unified Typesetting API M1-20040817


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