Unified Typesetting API M1-20040817

de.inghuimische.uta.typeset
Class AbstractBox

java.lang.Object
  extended byde.inghuimische.uta.typeset.AbstractBox
All Implemented Interfaces:
Box
Direct Known Subclasses:
AbstractGlyph

public abstract class AbstractBox
extends Object
implements Box

Abstract Box implementation.

Author:
Christian Ziesemer

Constructor Summary
AbstractBox()
           
 
Method Summary
 List getAnchorsByClass(AnchorClass anchorClass)
          Returns a list containing only those anchors of the given type.
 Rectangle2D getBoundingBox()
          Returns the bounding box of this object containing the whole shape.
abstract  void reset()
          Frees all allocated resources.
 
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.typeset.Box
getAnchors, getAttributes, getShape, getTransformation, setTransformation
 

Constructor Detail

AbstractBox

public AbstractBox()
Method Detail

getAnchorsByClass

public List getAnchorsByClass(AnchorClass anchorClass)
Description copied from interface: Box
Returns a list containing only those anchors of the given type.

Specified by:
getAnchorsByClass in interface Box
Parameters:
anchorClass - One of the anchor types defined in Anchor.
Returns:
A list containing only those anchors of the given type.

getBoundingBox

public Rectangle2D getBoundingBox()
Description copied from interface: Box
Returns the bounding box of this object containing the whole shape. The returned rectangle therefore provides the exact dimension of the box.

Specified by:
getBoundingBox in interface Box
Returns:
The bounding box of this object.

reset

public abstract void reset()
Frees all allocated resources. Useful when caching and reusing boxes.


Unified Typesetting API M1-20040817


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