|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.ui.Bitmap
danger.ui.ImmutableBitmap
public class ImmutableBitmap
An immutable bitmap provides all the functionality a regular Bitmap has, but it shares its content with another bitmap and does not
allow that content to be altered in any way. (The content may still be
altered through the other bitmap, though.)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class danger.ui.Bitmap |
|---|
Bitmap.FromResource |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ImmutableBitmap(Bitmap src)
Construct an instance. |
|
| Method Summary | |
|---|---|
boolean |
copyRotated(Bitmap from,
int degrees)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
copyScaled(Bitmap src)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
Pen |
createPen(int dx,
int dy)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
flipX()
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
flipY()
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
byte[] |
getPixels()
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
mirror()
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
replaceColor(int color,
int newColor)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
replacePaletteColor(int color,
int newColor)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
setPalette(int[] palette)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
setPixels(byte[] pixels)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
setTo(Bitmap src)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
setTransparentColor(int color)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
void |
setTransparentColorRGB(int color)
On instances of this class, this method simply throws a UIException indicating that the bitmap is immutable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableBitmap(Bitmap src)
src - non-null; the bitmap to track| Method Detail |
|---|
public Pen createPen(int dx,
int dy)
UIException indicating that the bitmap is immutable.
createPen in class Bitmapdx - the x offsetdy - the y offset
public final void setTo(Bitmap src)
UIException indicating that the bitmap is immutable.
setTo in class Bitmappublic final void copyScaled(Bitmap src)
UIException indicating that the bitmap is immutable.
copyScaled in class Bitmap
public final boolean copyRotated(Bitmap from,
int degrees)
UIException indicating that the bitmap is immutable.
copyRotated in class Bitmapfrom - the source Bitmapdegrees - 0, 90, 180, or 270
public final void mirror()
UIException indicating that the bitmap is immutable.
mirror in class Bitmappublic final void flipX()
UIException indicating that the bitmap is immutable.
flipX in class Bitmappublic final void flipY()
UIException indicating that the bitmap is immutable.
flipY in class Bitmap
public void replaceColor(int color,
int newColor)
UIException indicating that the bitmap is immutable.
replaceColor in class Bitmapcolor - the old color, in 32-bit ARGB formatnewColor - the new color, in 32-bit ARGB format
public void replacePaletteColor(int color,
int newColor)
UIException indicating that the bitmap is immutable.
replacePaletteColor in class Bitmapcolor - the old color, in 24-bit RGB formatnewColor - the new color, in 24-bit RGB formatpublic void setPalette(int[] palette)
UIException indicating that the bitmap is immutable.
setPalette in class Bitmappalette - The palette array to copy from, in packed ARGB.public void setTransparentColor(int color)
UIException indicating that the bitmap is immutable.
setTransparentColor in class Bitmapcolor - A colorspace dependent integer to use as the
transparent color.public void setTransparentColorRGB(int color)
UIException indicating that the bitmap is immutable.
setTransparentColorRGB in class Bitmapcolor - An RGB color packed into an integer. The alpha
component is masked out and ignored.public byte[] getPixels()
UIException indicating that the bitmap is immutable.
getPixels in class BitmapBitmap.setPixels(byte[])public void setPixels(byte[] pixels)
UIException indicating that the bitmap is immutable.
setPixels in class Bitmappixels - the new pixel array for this bitmapBitmap.getPixels()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||