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.ImageFilterInterface, AbstractConfig.StickerConfigInterface, AbstractConfig.ToolConfigInterfaceAbstractConfig.StickerConfigInterface.STICKER_TYPENO_THUMBNAIL_ID, ORIGINAL_THUMBNAIL_SIZE| Constructor and Description |
|---|
Divider() |
| Modifier and Type | Method and Description |
|---|---|
DataSourceListAdapter.DataSourceViewHolder |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
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() |
EditorPreview |
getEditorPreview() |
int |
getLayout()
Get the layout res id of the list item view.
|
AbstractOperation |
getOperation() |
Operator |
getOperator() |
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 |
isRevertible() |
boolean |
isSelectable() |
void |
refreshPanel() |
void |
release()
Release the shader program and texture
|
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap)
Apply the renderscript filter without intensity changes.
|
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap,
float intensity)
Apply the renderscript filter with a specific intensity.
|
void |
revertChanges() |
generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getTitle, hasStaticThumbnailclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTitlegenerateBindData, generateBindDataAsync, getNamepublic int getLayout()
DataSourceInterfacegetLayout in interface DataSourceInterface<AbstractConfig.BindData>public 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)
AbstractConfig.ImageFilterInterfacerenderImage in interface AbstractConfig.ImageFilterInterfacebitmap - the source image.@Nullable
public android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap,
float intensity)
AbstractConfig.ImageFilterInterfacerenderImage in interface AbstractConfig.ImageFilterInterfacebitmap - the source image.intensity - the filter intensitypublic 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.StickerConfigInterface@Nullable public AbstractOperation getOperation()
getOperation in interface AbstractConfig.ToolConfigInterfacepublic boolean isRevertible()
isRevertible in interface AbstractConfig.ToolConfigInterface@Nullable public Operator getOperator()
getOperator in interface AbstractConfig.ToolConfigInterfacepublic void revertChanges()
revertChanges in interface AbstractConfig.ToolConfigInterface@Nullable public EditorPreview getEditorPreview()
getEditorPreview 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 #getLayout