Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@887 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -25,15 +25,13 @@ import java.awt.Graphics2D;
|
||||
import java.awt.image.BufferedImage;
|
||||
|
||||
/**
|
||||
* Provides an interface via which images can be accessed in a way that
|
||||
* allows them to optionally be located in video memory where that affords
|
||||
* performance improvements.
|
||||
* Provides an interface via which images can be accessed in a way that allows them to optionally
|
||||
* be located in video memory where that affords performance improvements.
|
||||
*/
|
||||
public interface Mirage
|
||||
{
|
||||
/**
|
||||
* Renders this mirage at the specified position in the supplied
|
||||
* graphics context.
|
||||
* Renders this mirage at the specified position in the supplied graphics context.
|
||||
*/
|
||||
public void paint (Graphics2D gfx, int x, int y);
|
||||
|
||||
@@ -48,20 +46,18 @@ public interface Mirage
|
||||
public int getHeight ();
|
||||
|
||||
/**
|
||||
* Returns true if this mirage contains a non-transparent pixel at the
|
||||
* specified coordinate.
|
||||
* Returns true if this mirage contains a non-transparent pixel at the specified coordinate.
|
||||
*/
|
||||
public boolean hitTest (int x, int y);
|
||||
|
||||
/**
|
||||
* Returns a snapshot of this mirage as a buffered image. The snapshot
|
||||
* should <em>not</em> be modified by the caller.
|
||||
* Returns a snapshot of this mirage as a buffered image. The snapshot should <em>not</em> be
|
||||
* modified by the caller.
|
||||
*/
|
||||
public BufferedImage getSnapshot ();
|
||||
|
||||
/**
|
||||
* Returns an estimate of the memory consumed by this mirage's image
|
||||
* raster data.
|
||||
* Returns an estimate of the memory consumed by this mirage's image raster data.
|
||||
*/
|
||||
public long getEstimatedMemoryUsage ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user