public class Divider extends AbstractConfig implements AbstractConfig.FontConfigInterface<AbstractConfig.BindData>, AbstractConfig.ToolConfigInterface, AbstractConfig.AspectConfigInterface, AbstractConfig.ImageFilterInterface, AbstractConfig.StickerConfigInterface
AbstractConfig.AspectConfigInterface, AbstractConfig.BindData, AbstractConfig.ColorConfigInterface, AbstractConfig.ConfigViewHolder, AbstractConfig.FontConfigInterface<T>, AbstractConfig.FrameConfigInterface, AbstractConfig.ImageFilterInterface, AbstractConfig.StickerConfigInterface, AbstractConfig.ToolConfigInterfaceAbstractConfig.StickerConfigInterface.STICKER_TYPE| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Divider> |
CREATOR |
isDirty, NO_THUMBNAIL_ID, ORIGINAL_THUMBNAIL_SIZE| Modifier | Constructor and Description |
|---|---|
|
Divider() |
protected |
Divider(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
DataSourceListAdapter.DataSourceViewHolder |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
int |
describeContents() |
void |
detachPanel(boolean revertChanges) |
void |
draw(Texture texture,
float[] mvpMatrix,
float[] stMatrix,
float aspectRatio)
Draw texture in OpenGl Context
|
float |
getAspect() |
int |
getCropHeight() |
int |
getCropWidth() |
int |
getLayout()
Get the layout res id of the list item view.
|
StateHandler |
getStateHandler() |
int |
getStickerId()
Get sticker drawable resource id.
|
AbstractConfig.StickerConfigInterface.STICKER_TYPE |
getType()
Return the type of the sticker
|
android.graphics.Typeface |
getTypeface() |
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
boolean |
hasIntensityConfig()
Check if the Filter has Intensity Control
|
boolean |
hasSpecificSize() |
boolean |
isClickable() |
boolean |
isFreeCrop() |
boolean |
isRevertible() |
boolean |
isSelectable() |
void |
refreshPanel() |
void |
release()
Release the shader program and texture
|
Allocation |
renderImage(Allocation allocation,
float intensity,
boolean previewMode)
Apply the renderscript filter with a specific intensity.
|
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap,
float intensity,
boolean isPreviewMode)
Apply the renderscript filter with a specific intensity.
|
void |
revertChanges() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getTitle, hasStaticThumbnail, isDirty, setDirtyFlagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTitlegenerateBindData, generateBindDataAsync, getName, isDirty, setDirtyFlagpublic static final android.os.Parcelable.Creator<Divider> CREATOR
public int getLayout()
DataSourceInterfacegetLayout in interface DataSourceInterface<AbstractConfig.BindData>public boolean isFreeCrop()
isFreeCrop in interface AbstractConfig.AspectConfigInterfacepublic float getAspect()
getAspect in interface AbstractConfig.AspectConfigInterfacepublic boolean hasSpecificSize()
hasSpecificSize in interface AbstractConfig.AspectConfigInterfacepublic int getCropWidth()
getCropWidth in interface AbstractConfig.AspectConfigInterfacepublic int getCropHeight()
getCropHeight in interface AbstractConfig.AspectConfigInterface@Nullable public android.graphics.Typeface getTypeface()
getTypeface in interface AbstractConfig.FontConfigInterface<AbstractConfig.BindData>public int getVerticalLayout()
DataSourceInterfacegetVerticalLayout in interface DataSourceInterface<AbstractConfig.BindData>getVerticalLayout in class AbstractConfig@Nullable
public android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap,
float intensity,
boolean isPreviewMode)
AbstractConfig.ImageFilterInterfacerenderImage in interface AbstractConfig.ImageFilterInterfacebitmap - the source image.intensity - the filter intensityisPreviewMode - set true to render a faster preview@Nullable
public Allocation renderImage(Allocation allocation,
float intensity,
boolean previewMode)
AbstractConfig.ImageFilterInterfacerenderImage in interface AbstractConfig.ImageFilterInterfaceallocation - the source image.intensity - the filter intensitypreviewMode - set true to render a faster previewpublic void release()
AbstractConfig.ImageFilterInterfacerelease in interface AbstractConfig.ImageFilterInterfacepublic boolean isSelectable()
isSelectable in interface DataSourceInterface<AbstractConfig.BindData>public void draw(Texture texture, float[] mvpMatrix, float[] stMatrix, float aspectRatio)
AbstractConfig.ImageFilterInterfacedraw in interface AbstractConfig.ImageFilterInterfacetexture - the camera preview texturemvpMatrix - the camera source matrixstMatrix - the stage destination matrixaspectRatio - the camera image aspectpublic boolean isClickable()
isClickable in class AbstractConfigpublic boolean hasIntensityConfig()
AbstractConfig.ImageFilterInterfacehasIntensityConfig in interface AbstractConfig.ImageFilterInterface@Nullable public AbstractConfig.StickerConfigInterface.STICKER_TYPE getType()
AbstractConfig.StickerConfigInterfacegetType in interface AbstractConfig.StickerConfigInterfaceAbstractConfig.StickerConfigInterface.STICKER_TYPEpublic int getStickerId()
AbstractConfig.StickerConfigInterfacegetStickerId in interface AbstractConfig.StickerConfigInterfacepublic boolean isRevertible()
isRevertible in interface AbstractConfig.ToolConfigInterface@Nullable public StateHandler getStateHandler()
getStateHandler in interface AbstractConfig.ToolConfigInterfacepublic void revertChanges()
revertChanges in interface AbstractConfig.ToolConfigInterfacepublic void detachPanel(boolean revertChanges)
detachPanel in interface AbstractConfig.ToolConfigInterfacepublic void refreshPanel()
refreshPanel in interface AbstractConfig.ToolConfigInterface@NonNull public DataSourceListAdapter.DataSourceViewHolder createViewHolder(@NonNull android.view.View view, boolean useVerticalLayout)
DataSourceInterfacecreateViewHolder in interface DataSourceInterface<AbstractConfig.BindData>createViewHolder in class AbstractConfigview - view inflated with #getLayoutpublic int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class AbstractConfigpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class AbstractConfig