public class FlexElement extends PixelMapElement
FlexElement object that can flexibly display PixelMap objects.
You can create a FlexElement object based on a PixelMap object.
Element.ConstantState, Element.OnBoundsChangeListener, Element.OnChangeListener, Element.OnLayoutDirectionChangeListener, Element.OnRankChangeListenerALPHA_DEFAULT, ALPHA_MAX, ALPHA_MIN, DEFAULT_BOUNDS_RECT, MAX_RANK, MIN_RANKmUserPixelMap| 构造器 | 说明 |
|---|---|
FlexElement(PixelMap pixelMap) |
A constructor used to create a
FlexElement instance based on
a PixelMap object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Rect |
getCenterBounds() |
Obtains the center bounds of this
FlexElement object. |
void |
setCenterBounds(Rect bounds) |
Sets center bounds for this
FlexElement object using a Rect object. |
clearColorMatrix, drawToCanvas, getAlpha, getBounds, getCallback, getColorMatrix, getCurrentElement, getHeight, getLayoutDirection, getMinHeight, getMinWidth, getPadding, getRank, getStateColorMode, getVisible, getWidth, isInheritDirection, isStateful, isVisible, release, setAlpha, setBounds, setBounds, setCallback, setColorMatrix, setInheritDirection, setLayoutDirection, setOnBoundsChangeListener, setOnLayoutDirectionChangeListener, setOnRankChangeListener, setRank, setStateColor, setStateColorList, setStateColorMode, setVisible, skipAnimationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlignment, getFilterPixelMap, getHorizontalTileMode, getPixelMap, getVerticalTileMode, isAntiAlias, setAlignment, setAntiAlias, setFilterPixelMap, setHorizontalTileMode, setRenderDensity, setTileMode, setVerticalTileModepublic void setCenterBounds(Rect bounds) throws IllegalArgumentException
FlexElement object using a Rect object.
NOTE: Bounds values couldn't be more then original PixelMap object size,
please pay attention for it.
bounds - Indicates the center bounds to set, which cannot be greater than
the size of the PixelMap object.IllegalArgumentException - Throws this exception if bounds is invalid.getCenterBounds()public Rect getCenterBounds()
FlexElement object.setCenterBounds(Rect)