danger.ui
Class ImmutableBitmap
java.lang.Object
|
+--danger.ui.Bitmap
|
+--danger.ui.ImmutableBitmap
- public class ImmutableBitmap
- extends Bitmap
An immutable bitmap provides all the functionality a regular Bitmap
has, but shares its content with another bitmap and does not allow that
content to be altered in any way.
|
Method Summary |
boolean |
copyRotated(Bitmap from,
int degrees)
This method is not allowed in Immutable bitmaps
and will throw a UIException |
void |
copyScaled(Bitmap src)
This method is not allowed in Immutable bitmaps
and will throw a UIException |
Pen |
createPen(int dx,
int dy)
This method is not allowed in Immutable bitmaps
and will throw a UIException |
int |
getID()
|
ImmutableBitmap |
getNext()
|
byte[] |
getPixels()
This method is not allowed in Immutable bitmaps
and will throw a UIException |
void |
replaceColor(int color,
int newColor)
This method is not allowed in Immutable bitmaps
and will throw a UIException |
void |
replacePaletteColor(int color,
int newColor)
This method is not allowed in Immutable bitmaps
and will throw a UIException |
void |
setTransparentColor(int color)
This method is not allowed in Immutable bitmaps
and will throw a UIException |
| Methods inherited from class danger.ui.Bitmap |
canDrawInverted, convertToScreenColorSpace, convertToScreenColorSpace, copyBits, copyBitsTo, createPen, flatten, getColorSpace, getFlattenedSize, getHeight, getPaletteSize, getPoint, getPoint, getStride, getTransparentColor, getWidth, newFromEncodedData, newFromFlattenedData, newFromJPEGData, newFromPNGData, rotateBy, scaleTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutableBitmap
public ImmutableBitmap(Bitmap src)
ImmutableBitmap
public ImmutableBitmap(Bitmap src,
int id,
ImmutableBitmap next)
createPen
public Pen createPen(int dx,
int dy)
- This method is not allowed in Immutable bitmaps
and will throw a UIException
- Overrides:
createPen in class Bitmap
copyScaled
public final void copyScaled(Bitmap src)
- This method is not allowed in Immutable bitmaps
and will throw a UIException
- Overrides:
copyScaled in class Bitmap
copyRotated
public final boolean copyRotated(Bitmap from,
int degrees)
- This method is not allowed in Immutable bitmaps
and will throw a UIException
- Overrides:
copyRotated in class Bitmap
replaceColor
public void replaceColor(int color,
int newColor)
- This method is not allowed in Immutable bitmaps
and will throw a UIException
- Overrides:
replaceColor in class Bitmap
replacePaletteColor
public void replacePaletteColor(int color,
int newColor)
- This method is not allowed in Immutable bitmaps
and will throw a UIException
- Overrides:
replacePaletteColor in class Bitmap
setTransparentColor
public void setTransparentColor(int color)
- This method is not allowed in Immutable bitmaps
and will throw a UIException
- Overrides:
setTransparentColor in class Bitmap
getPixels
public byte[] getPixels()
- This method is not allowed in Immutable bitmaps
and will throw a UIException
- Overrides:
getPixels in class Bitmap
getID
public int getID()
getNext
public ImmutableBitmap getNext()
Danger Confidential. Copyright © 2000-2003, Danger Inc.