From 73ee48bc3f6c0f3815c82c5636f1775c54e2cdbb Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 19 Jun 2002 23:28:14 +0000 Subject: [PATCH] Provide access to our trimmed bounds. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1499 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/media/tile/TrimmedTile.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/tile/TrimmedTile.java b/src/java/com/threerings/media/tile/TrimmedTile.java index 28556e750..f5fbc0c63 100644 --- a/src/java/com/threerings/media/tile/TrimmedTile.java +++ b/src/java/com/threerings/media/tile/TrimmedTile.java @@ -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 not be modified. + */ + public Rectangle getTrimmedBounds () + { + return _tbounds; + } + // documentation inherited public Image getImage () {