Package com.teamten.typeset
Class AbstractDimensions
java.lang.Object
com.teamten.typeset.AbstractDimensions
- All Implemented Interfaces:
Dimensions
- Direct Known Subclasses:
Font.Metrics
Simple class that implements the Dimensions interface.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AbstractDimensions
public AbstractDimensions(long width, long height, long depth)
-
-
Method Details
-
getWidth
public long getWidth()Description copied from interface:Dimensions
The width of the object in scaled points.- Specified by:
getWidth
in interfaceDimensions
-
getHeight
public long getHeight()Description copied from interface:Dimensions
The distance between the baseline and the top of the object in scaled points.- Specified by:
getHeight
in interfaceDimensions
-
getDepth
public long getDepth()Description copied from interface:Dimensions
The distance between the baseline and the bottom of the object in scaled points.- Specified by:
getDepth
in interfaceDimensions
-