Class AbstractDimensions

java.lang.Object
com.teamten.typeset.AbstractDimensions
All Implemented Interfaces:
Dimensions
Direct Known Subclasses:
Font.Metrics

public class AbstractDimensions extends Object implements Dimensions
Simple class that implements the Dimensions interface.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractDimensions(long width, long height, long depth)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The distance between the baseline and the bottom of the object in scaled points.
    long
    The distance between the baseline and the top of the object in scaled points.
    long
    The width of the object in scaled points.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface Dimensions
    • 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 interface Dimensions
    • 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 interface Dimensions