Provide access to our trimmed bounds.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1499 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-06-19 23:28:14 +00:00
parent dd85c179f2
commit 73ee48bc3f
@@ -1,5 +1,5 @@
//
// $Id: TrimmedTile.java,v 1.2 2002/06/19 08:28:25 mdb Exp $
// $Id: TrimmedTile.java,v 1.3 2002/06/19 23:28:14 mdb Exp $
package com.threerings.media.tile;
@@ -49,6 +49,16 @@ public class TrimmedTile extends Tile
gfx.drawImage(_subimage, x + _tbounds.x, y + _tbounds.y, null);
}
/**
* Returns the bounds of the trimmed image within the coordinate
* system defined by the complete virtual tile. The returned rectangle
* should <em>not</em> be modified.
*/
public Rectangle getTrimmedBounds ()
{
return _tbounds;
}
// documentation inherited
public Image getImage ()
{