org.extex.font.format.xtf.tables
Class XtfBoundingBox

java.lang.Object
  extended by org.extex.font.format.xtf.tables.XtfBoundingBox

public class XtfBoundingBox
extends java.lang.Object

Bounding box.

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Constructor Summary
XtfBoundingBox(short xmin, short ymin, short xmax, short ymax)
          Creates a new object.
 
Method Summary
 boolean eq(int xmin, int ymin, int xmax, int ymax)
          Returns true, if the values are equals.
 boolean eq(short xmin, short ymin, short xmax, short ymax)
          Returns true, if the values are equals.
 int getDepth()
          Returns the depth of the bounding box.
 int getHeight()
          Returns the height of the bounding box.
 short getXMax()
          Getter for xMax.
 short getXMin()
          Getter for xMin.
 short getYMax()
          Getter for yMax.
 short getYMin()
          Getter for yMin.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XtfBoundingBox

public XtfBoundingBox(short xmin,
                      short ymin,
                      short xmax,
                      short ymax)
Creates a new object.

Parameters:
xmin - The x-min.
ymin - The y-min.
xmax - The x-max.
ymax - The y-max.
Method Detail

eq

public boolean eq(int xmin,
                  int ymin,
                  int xmax,
                  int ymax)
Returns true, if the values are equals.

Parameters:
xmin - The x-min.
ymin - The y-min.
xmax - The x-max.
ymax - The y-max.
Returns:
true, if the values are equals.

eq

public boolean eq(short xmin,
                  short ymin,
                  short xmax,
                  short ymax)
Returns true, if the values are equals.

Parameters:
xmin - The x-min.
ymin - The y-min.
xmax - The x-max.
ymax - The y-max.
Returns:
true, if the values are equals.

getDepth

public int getDepth()
Returns the depth of the bounding box.

Returns:
Returns the depth of the bounding box.

getHeight

public int getHeight()
Returns the height of the bounding box.

Returns:
Returns the height of the bounding box.

getXMax

public short getXMax()
Getter for xMax.

Returns:
Returns the xMax.

getXMin

public short getXMin()
Getter for xMin.

Returns:
Returns the xMin.

getYMax

public short getYMax()
Getter for yMax.

Returns:
Returns the yMax.

getYMin

public short getYMin()
Getter for yMin.

Returns:
Returns the yMin.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object