public abstract class SpecialItem extends AbstractConfig implements FontConfigInterface<AbstractConfig.BindData>, ToolConfigInterface, AspectConfigInterface, ImageFilterInterface, StickerConfigInterface
AbstractConfig.BindData
StickerConfigInterface.STICKER_TYPE
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
SpecialItem() |
SpecialItem(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
abstract DataSourceListAdapter.DataSourceViewHolder |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
void |
detachPanel(boolean revertChanges) |
java.math.BigDecimal |
getAspect() |
int |
getCropHeight() |
int |
getCropWidth() |
abstract int |
getLayout()
Get the layout res id of the list item view.
|
StateHandler |
getStateHandler() |
ImageSource |
getStickerSource()
Get the drawable sticker image source
|
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 |
hasEqualAspect(AspectConfigInterface o) |
boolean |
hasIntensityConfig()
Check if the Filter has Intensity Control
|
boolean |
hasSpecificSize() |
boolean |
isAcceptable() |
boolean |
isCancelable() |
boolean |
isFreeCrop() |
boolean |
isSelectable() |
void |
preloadLut() |
void |
refreshPanel() |
void |
release()
Release the shader program and texture
|
android.support.v8.renderscript.Allocation |
renderImage(android.support.v8.renderscript.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 |
unloadLut() |
describeContents, generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag, writeToParcel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle
generateBindData, generateBindDataAsync, getId, getName, isDirty, setDirtyFlag
public SpecialItem()
public SpecialItem(android.os.Parcel in)
@NonNull public abstract DataSourceListAdapter.DataSourceViewHolder createViewHolder(@NonNull android.view.View view, boolean useVerticalLayout)
DataSourceInterface
createViewHolder
in interface DataSourceInterface<AbstractConfig.BindData>
createViewHolder
in class AbstractConfig
view
- view inflated with #getLayoutpublic void detachPanel(boolean revertChanges)
detachPanel
in interface ToolConfigInterface
public java.math.BigDecimal getAspect()
getAspect
in interface AspectConfigInterface
public int getCropHeight()
getCropHeight
in interface AspectConfigInterface
public int getCropWidth()
getCropWidth
in interface AspectConfigInterface
public abstract int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface<AbstractConfig.BindData>
@Nullable public StateHandler getStateHandler()
getStateHandler
in interface ToolConfigInterface
public ImageSource getStickerSource()
StickerConfigInterface
getStickerSource
in interface StickerConfigInterface
@Nullable public StickerConfigInterface.STICKER_TYPE getType()
StickerConfigInterface
getType
in interface StickerConfigInterface
StickerConfigInterface.STICKER_TYPE
@Nullable public android.graphics.Typeface getTypeface()
getTypeface
in interface FontConfigInterface<AbstractConfig.BindData>
public int getVerticalLayout()
DataSourceInterface
getVerticalLayout
in interface DataSourceInterface<AbstractConfig.BindData>
getVerticalLayout
in class AbstractConfig
public boolean hasEqualAspect(@Nullable AspectConfigInterface o)
hasEqualAspect
in interface AspectConfigInterface
public boolean hasIntensityConfig()
ImageFilterInterface
hasIntensityConfig
in interface ImageFilterInterface
public boolean hasSpecificSize()
hasSpecificSize
in interface AspectConfigInterface
public boolean isAcceptable()
isAcceptable
in interface ToolConfigInterface
public boolean isCancelable()
isCancelable
in interface ToolConfigInterface
public boolean isFreeCrop()
isFreeCrop
in interface AspectConfigInterface
public boolean isSelectable()
isSelectable
in interface DataSourceInterface<AbstractConfig.BindData>
public void preloadLut()
preloadLut
in interface ImageFilterInterface
public void refreshPanel()
refreshPanel
in interface ToolConfigInterface
public void release()
ImageFilterInterface
release
in interface ImageFilterInterface
@Nullable public android.support.v8.renderscript.Allocation renderImage(android.support.v8.renderscript.Allocation allocation, float intensity, boolean previewMode)
ImageFilterInterface
renderImage
in interface ImageFilterInterface
allocation
- the sourceType image allocation (RGBA_8888).intensity
- the filter intensitypreviewMode
- set true to triggerOperatorsIfNeeded a faster preview@Nullable public android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap, float intensity, boolean isPreviewMode)
ImageFilterInterface
renderImage
in interface ImageFilterInterface
bitmap
- the sourceType image.intensity
- the filter intensityisPreviewMode
- set true to triggerOperatorsIfNeeded a faster previewpublic void revertChanges()
revertChanges
in interface ToolConfigInterface
public void unloadLut()
unloadLut
in interface ImageFilterInterface