|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.image.VolatileMirage
com.threerings.media.image.CachedVolatileMirage
public class CachedVolatileMirage
A mirage implementation which allows the image to be maintained in video memory and refetched from the image manager in the event that our target screen resolution changes or we are flushed from video memory for some other reason.
These objects are never created directly, but always obtained from
the ImageManager.
| Field Summary | |
|---|---|
protected ImageManager.ImageKey |
_source
The key that identifies the image data used to create our volatile image. |
protected Colorization[] |
_zations
Optional colorizations that are applied to our source image when creating our mirage. |
| Fields inherited from class com.threerings.media.image.VolatileMirage |
|---|
_bounds, _image, _imgr, IMAGE_DEBUG |
| Constructor Summary | |
|---|---|
protected |
CachedVolatileMirage(ImageManager imgr,
ImageManager.ImageKey source,
Rectangle bounds,
Colorization[] zations)
Creates a mirage with the supplied regeneration informoation and prepared image. |
| Method Summary | |
|---|---|
protected int |
getTransparency()
Returns the transparency that should be used when creating our volatile image. |
protected void |
refreshVolatileImage()
Rerenders our volatile image from the its source image data. |
protected void |
toString(StringBuilder buf)
Generates a string representation of this instance. |
| Methods inherited from class com.threerings.media.image.VolatileMirage |
|---|
createVolatileImage, getEstimatedMemoryUsage, getHeight, getSnapshot, getWidth, getX, getY, hitTest, paint, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ImageManager.ImageKey _source
protected Colorization[] _zations
| Constructor Detail |
|---|
protected CachedVolatileMirage(ImageManager imgr,
ImageManager.ImageKey source,
Rectangle bounds,
Colorization[] zations)
| Method Detail |
|---|
protected int getTransparency()
VolatileMirage
getTransparency in class VolatileMirageprotected void refreshVolatileImage()
VolatileMirage
refreshVolatileImage in class VolatileMirageprotected void toString(StringBuilder buf)
VolatileMirage
toString in class VolatileMirage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||