public abstract class TuEditPaintFragmentBase extends TuImageResultFragment implements PaintDrawView.PaintDrawViewDelagate
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditPaintFragmentBase() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
asyncEditWithResult(TuSdkResult result)
异步处理图片
|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected abstract java.util.List<PaintData> |
getColorList() |
abstract PaintDrawView |
getPaintDrawView() |
abstract TuBrushSizeAnimView |
getSizeAnimView() |
protected void |
handleBackButton()
后退按钮
|
protected void |
handleCompleteButton()
完成按钮
|
protected void |
handleOrigianlButtonDown()
按下显示原图按钮
|
protected void |
handleOrigianlButtonUp()
松开显示原图按钮
|
protected void |
handleRedoButton()
Redo按钮
|
protected void |
handleUndoButton()
Undo按钮
|
protected void |
loadView(android.view.ViewGroup view)
加载视图
|
protected void |
notifyProcessing(TuSdkResult result)
通知处理结果
|
void |
onDestroyView()
视图销毁,删除临时文件
|
void |
onRefreshStepStatesWithHistories(int undoCount,
int redoCount)
用户操作导致撤销/重做数据发生变化
|
boolean |
selectPaint(PaintData paint)
选中一个画笔
|
protected void |
startSizeAnimation(int currentSize,
int newSize)
播放笔刷尺寸切换动画
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncLoadImage, asyncLoadImageCompleted, getCuterImage, getCuterImage, getImage, getImageDisplaySize, getImageSqlInfo, getPreview, getTempFilePath, handleTest, isAutoRemoveTemp, isShowResultPreview, loadImageWithThread, loadOrginImage, postProcessWithImage, preProcessWithImage, processingImage, setAutoRemoveTemp, setImage, setImageSqlInfo, setShowResultPreview, setTempFilePath, showResultPreview
addWaterMarkToImage, asyncProcessingIfNeedSave, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToAlbum, isSaveToTemp, saveToAlbum, saveToTemp, setOutputCompress, setSaveToAlbum, setSaveToAlbumName, setSaveToTemp, setWaterMarkOption
getErrorListener, getRequestPermissionCode, getRequiredPermissions, hasRequiredPermission, notifyError, onPermissionGrantedResult, onRequestPermissionsResult, requestRequiredPermissions, setErrorListener
alert, alert, filpModalNavigationActivity, filpModalNavigationActivity, hubDismiss, hubDismissRightNow, hubError, hubError, hubStatus, hubStatus, hubSuccess, hubSuccess, initCreateView, onCreateView, onDetach, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushModalNavigationActivity, pushModalNavigationActivity, setNavLeftButton, setNavLeftButton, setNavLeftButton, setNavLeftHighLightButton, setNavLeftHighLightButton, setNavRightButton, setNavRightButton, setNavRightButton, setNavRightHighLightButton, setNavRightHighLightButton
addOrientationListener, backStackEntryCount, bindSoftInputEvent, dismissActivity, dismissActivityWithAnim, dismissActivityWithAnim, equalViewIds, filpModalNavigationActivity, getDismissAnimType, getNavButton, getOriginFragment, getResColor, getResString, getResString, getResString, getResString, getRootView, getRootViewLayoutId, getSdkActivity, getTitle, getViewById, getViewById, getViewId, isBackButtonShowed, isFragmentPause, isFullScreen, isSupportSlideBack, navigatorBarBackAction, navigatorBarCancelAction, navigatorBarHeight, navigatorBarLeftAction, navigatorBarLoaded, navigatorBarRightAction, navSearchViewSearch, navSearchViewSetDelegate, navSegmentedAddTexts, navSegmentedAddTexts, navSegmentedSetDelegate, navSegmentedSetected, onAttach, onBackForSlide, onBackPressed, onCreateAnimation, onDestroy, onFragmentAnimationEnd, onKeyUp, onNavigatorBarButtonClicked, onOrientationChanged, onPause, onPauseFragment, onPreDraw, onRefreshData, onResume, onResumeFragment, popFragment, popFragment, popFragmentRoot, presentActivity, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushFragment, refreshOriginFragment, replaceFragment, runOnUiThread, setIsSupportSlideBack, setNavigatorBarId, setNavigatorBarOnButtom, setNavLeftButton, setNavLeftButton, setNavRightButton, setNavRightButton, setOriginFragment, setRequestedOrientation, setRootViewLayoutId, setTitle, setTitle, showBackButton, showNavigatorBar, showView, showViewIn, wantFullScreen
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
public abstract PaintDrawView getPaintDrawView()
public abstract TuBrushSizeAnimView getSizeAnimView()
protected abstract java.util.List<PaintData> getColorList()
protected void notifyProcessing(TuSdkResult result)
TuResultFragment
notifyProcessing
在类中 TuResultFragment
protected boolean asyncNotifyProcessing(TuSdkResult result)
TuResultFragment
asyncNotifyProcessing
在类中 TuResultFragment
result
- SDK处理结果protected void loadView(android.view.ViewGroup view)
TuSdkFragment
loadView
在类中 TuSdkFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuSdkFragment
public void onRefreshStepStatesWithHistories(int undoCount, int redoCount)
PaintDrawView.PaintDrawViewDelagate
onRefreshStepStatesWithHistories
在接口中 PaintDrawView.PaintDrawViewDelagate
undoCount
- 可以撤销的次数redoCount
- 可以重做的次数public void onDestroyView()
TuImageResultFragment
onDestroyView
在类中 TuImageResultFragment
protected void handleBackButton()
public boolean selectPaint(PaintData paint)
paint
- 画笔颜色protected void handleUndoButton()
protected void handleRedoButton()
protected void handleOrigianlButtonDown()
protected void handleOrigianlButtonUp()
protected void startSizeAnimation(int currentSize, int newSize)
currentSize
- 是否缩小newSize
- 是否缩小protected void handleCompleteButton()
protected void asyncEditWithResult(TuSdkResult result)