Unified Typesetting API M1-20040817

de.inghuimische.uta
Class AbstractItem

java.lang.Object
  extended byde.inghuimische.uta.AbstractItem
All Implemented Interfaces:
Item
Direct Known Subclasses:
SimpleItem

public abstract class AbstractItem
extends Object
implements Item

An abstract item with a default implementation of the getOpticalDensity(boolean, int) method.

Author:
Christian Ziesemer

Field Summary
 
Fields inherited from interface de.inghuimische.uta.Item
DENSITY_END, DENSITY_START, POSTBREAK, PREBREAK, STANDALONE, SURROUNDED
 
Constructor Summary
AbstractItem()
           
 
Method Summary
 List getInnerEmbeddingLevels()
          Note that this is a quite inefficient implementation of Item.getInnerEmbeddingLevels().
 double getOpticalDensity(boolean startOrEnd, int itemPosition)
          Returns -1 by default, therefore no support for this feature.
 
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.Item
getBoxes, getBreakPenalty, getPosition, getWidth, setPosition
 

Constructor Detail

AbstractItem

public AbstractItem()
Method Detail

getOpticalDensity

public double getOpticalDensity(boolean startOrEnd,
                                int itemPosition)
Returns -1 by default, therefore no support for this feature.

Specified by:
getOpticalDensity in interface Item
Parameters:
startOrEnd - Specifies whether the leading or trailing character of the item is of interest.
itemPosition - The position within the line.
Returns:
A value specifing the medium grey value of the requested character or -1 if the feature is not supported.

getInnerEmbeddingLevels

public List getInnerEmbeddingLevels()
Note that this is a quite inefficient implementation of Item.getInnerEmbeddingLevels().

Specified by:
getInnerEmbeddingLevels in interface Item
Returns:
The embedding levels contained within or an empty list if there are none.

Unified Typesetting API M1-20040817


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