public class TuEditPaintOption extends TuImageResultOption
构造器和说明 |
---|
TuEditPaintOption()
图片编辑涂鸦控制器配置选项
|
限定符和类型 | 方法和说明 |
---|---|
TuEditPaintFragment |
fragment() |
int |
getBrushBarCellLayoutId()
笔刷列表行视图布局资源ID
|
int |
getBrushBarCellWidth() |
int |
getBrushBarHeight() |
java.util.List<java.lang.String> |
getBrushGroup() |
float |
getBrushScale() |
BrushSize.SizeType |
getDefaultBrushSize() |
protected java.lang.Class<?> |
getDefaultComponentClazz()
图片编辑涂鸦控制器类
|
protected int |
getDefaultRootViewLayoutId()
获取默认根视图布局资源ID
|
int |
getMaxUndoCount() |
float |
getMinDistance() |
boolean |
isSaveLastBrush() |
void |
setBrushBarCellLayoutId(int mBrushBarCellLayoutId)
笔刷列表行视图布局资源ID
|
void |
setBrushBarCellWidth(int mBrushBarCellWidth) |
void |
setBrushBarCellWidthDP(int mBrushBarCellWidthDP) |
void |
setBrushBarHeight(int mBrushBarHeight) |
void |
setBrushBarHeightDP(int mBrushBarHeightDP) |
void |
setBrushGroup(java.util.List<java.lang.String> mBrushGroup) |
void |
setBrushScale(float mBrushScale) |
void |
setDefaultBrushSize(BrushSize.SizeType mDefaultBrushSize) |
void |
setMaxUndoCount(int mMaxUndoCount) |
void |
setMinDistance(float mMinDistance) |
void |
setSaveLastBrush(boolean mSaveLastBrush) |
fragmentInstance, isAutoRemoveTemp, isShowResultPreview, setAutoRemoveTemp, setShowResultPreview
getOutputCompress, getSaveToAlbumName, isSaveToAlbum, isSaveToTemp, setOutputCompress, setSaveToAlbum, setSaveToAlbumName, setSaveToTemp
getComponentClazz, getRootViewLayoutId, setComponentClazz, setRootViewLayoutId
protected java.lang.Class<?> getDefaultComponentClazz()
getDefaultComponentClazz
在类中 TuSdkComponentOption
TuEditPaintFragment
,如需自定义请继承自
TuEditPaintFragment)protected int getDefaultRootViewLayoutId()
getDefaultRootViewLayoutId
在类中 TuSdkComponentOption
{@link org.lasque.tusdk.impl.components.paintdraw.TuEditPaintFragment}
public int getBrushBarCellWidth()
public void setBrushBarCellWidth(int mBrushBarCellWidth)
mBrushBarCellWidth
- 行视图宽度public void setBrushBarCellWidthDP(int mBrushBarCellWidthDP)
mBrushBarCellWidthDP
- 行视图宽度 (单位:DP)public int getBrushBarCellLayoutId()
笔刷列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_brush_bar_item_cell,如需自定义请继承自
PaintBarItemCellBase){@link org.lasque.tusdk.modules.view.widget.paintdraw.PaintDrawBarItemCellBase}
public void setBrushBarCellLayoutId(int mBrushBarCellLayoutId)
笔刷列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_brush_bar_item_cell,如需自定义请继承自
PaintBarItemCellBase){@link org.lasque.tusdk.modules.view.widget.paintdraw.PaintDrawBarItemCellBase}
public int getBrushBarHeight()
public void setBrushBarHeight(int mBrushBarHeight)
mBrushBarHeight
- 笔刷栏高度public void setBrushBarHeightDP(int mBrushBarHeightDP)
mBrushBarHeightDP
- 笔刷栏高度 (单位:DP)public boolean isSaveLastBrush()
public void setSaveLastBrush(boolean mSaveLastBrush)
mSaveLastBrush
- 记住用户最后一次使用的笔刷public BrushSize.SizeType getDefaultBrushSize()
BrushSize.SizeType.MediumBrush
,中等粗细)public void setDefaultBrushSize(BrushSize.SizeType mDefaultBrushSize)
mDefaultBrushSize
- 默认的笔刷大小 (默认: BrushSize.SizeType.MediumBrush
,中等粗细)public int getMaxUndoCount()
public void setMaxUndoCount(int mMaxUndoCount)
mMaxUndoCount
- 允许撤销的次数 (默认: 5)public java.util.List<java.lang.String> getBrushGroup()
public void setBrushGroup(java.util.List<java.lang.String> mBrushGroup)
mBrushGroup
- 需要显示的笔刷组 (如果为空将显示所有自定义笔刷)public float getMinDistance()
public void setMinDistance(float mMinDistance)
mMinDistance
- 最短绘制距离public float getBrushScale()
public void setBrushScale(float mBrushScale)
mBrushScale
- 笔刷缩放大小public TuEditPaintFragment fragment()