public class SolidLayer extends Layer
swigCMemOwn
构造器和说明 |
---|
SolidLayer(Bitmap bitmap)
Constructs a SolidLayer object from a bitmap.
|
SolidLayer(Color color)
Constructs a SolidLayer object from a color.
|
SolidLayer(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
void |
delete() |
protected void |
finalize() |
Bitmap |
getBitmap()
Returns the bitmap of this layer.
|
float |
getBitmapScale()
Returns the bitmap scaling factor.
|
Color |
getColor()
Returns the color of this layer.
|
static long |
getCPtr(SolidLayer obj) |
boolean |
isUpdateInProgress()
Tests whether this layer is being currently updated.
|
void |
setBitmap(Bitmap bitmap)
Sets the bitmap of this layer.
|
void |
setBitmapScale(float scale)
Sets the bitmap scaling factor.
|
void |
setColor(Color color)
Sets the color of this layer.
|
static SolidLayer |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
deleteInGLThread, equals, getCPtr, getLayerBrightness, getLayerContrast, getLayerOpacity, getLayerSaturation, getPriority, getUpdatePriority, getUUID, getVisibleZoomRange, hashCode, inVisibleZoomRange, isVisible, refresh, screenClip, setCullDelay, setLayerBrightness, setLayerContrast, setLayerOpacity, setLayerSaturation, setPriority, setUpdatePriority, setVisible, setVisibleZoomRange, update
public SolidLayer(long cPtr, boolean cMemoryOwn)
public SolidLayer(Color color)
color
- The color for the layer.public SolidLayer(Bitmap bitmap)
bitmap
- The bitmap for the layer.public static long getCPtr(SolidLayer obj)
public static SolidLayer swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public Color getColor()
public void setColor(Color color)
color
- The new color for the layer. Note: if bitmap is defined, the color is multiplied with the bitmap.public Bitmap getBitmap()
public void setBitmap(Bitmap bitmap)
bitmap
- The new bitmap for the layer. Can be null, in that case the layer color is used.public float getBitmapScale()
public void setBitmapScale(float scale)
scale
- The new bitmap scaling factor. Default is 1, which corresponds to 1:1 mapping between bitmap pixels and screen pixels.public boolean isUpdateInProgress()
Layer
isUpdateInProgress
在类中 Layer
public java.lang.String swigGetClassName()
swigGetClassName
在类中 Layer
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 Layer