public abstract class TuEditCuterFragmentBase extends TuImageResultFragment
限定符和类型 | 字段和说明 |
---|---|
protected android.view.View.OnLayoutChangeListener |
mRegionLayoutChangeListener
裁剪选取视图布局改变
|
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditCuterFragmentBase() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
asyncEditWithResult(TuSdkResult result)
异步处理图片
|
float |
getCurrentRatio()
CurrentRatio
|
int |
getCurrentRatioType()
当前裁剪比例类型
|
abstract TuMaskRegionView |
getCutRegionView()
裁剪选取视图
|
ImageOrientation |
getImageOrientation()
图片方向
|
<T extends android.view.View & TuSdkTouchImageViewInterface> |
getImageView()
图片视图
|
abstract android.widget.RelativeLayout |
getImageWrapView()
图片包装视图
|
abstract int[] |
getRatioTypes()
获取显示的比例类型列表 (默认:RatioType.ratio_all)
|
android.graphics.RectF |
getZoomRect()
缩放选择区域
|
float |
getZoomScale()
缩放比例
|
protected void |
handleCompleteButton()
完成按钮
|
abstract boolean |
isOnlyReturnCuter()
是否仅返回裁切参数,不返回处理图片
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
protected void |
onRegionLayoutChanged(TuMaskRegionView cutRegionView)
裁剪选取视图布局改变
|
void |
setCurrentRatioType(int mCurrentRatioType)
当前裁剪比例类型
|
void |
setCuterResult(TuSdkResult result)
设置裁剪结果
|
void |
setImageOrientation(ImageOrientation mImageOrientation)
图片方向
|
void |
setZoomRect(android.graphics.RectF mZoomRect)
缩放选择区域
|
void |
setZoomScale(float mZoomScale)
缩放比例
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncLoadImage, asyncLoadImageCompleted, getCuterImage, getCuterImage, getImage, getImageDisplaySize, getImageSqlInfo, getPreview, getTempFilePath, handleTest, isAutoRemoveTemp, isShowResultPreview, loadImageWithThread, loadOrginImage, onDestroyView, postProcessWithImage, preProcessWithImage, processingImage, setAutoRemoveTemp, setImage, setImageSqlInfo, setShowResultPreview, setTempFilePath, showResultPreview
addWaterMarkToImage, asyncNotifyProcessing, asyncProcessingIfNeedSave, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToAlbum, isSaveToTemp, notifyProcessing, 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
protected android.view.View.OnLayoutChangeListener mRegionLayoutChangeListener
public abstract int[] getRatioTypes()
public abstract boolean isOnlyReturnCuter()
public abstract android.widget.RelativeLayout getImageWrapView()
public abstract TuMaskRegionView getCutRegionView()
public <T extends android.view.View & TuSdkTouchImageViewInterface> T getImageView()
protected void onRegionLayoutChanged(TuMaskRegionView cutRegionView)
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuSdkFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuSdkFragment
public final android.graphics.RectF getZoomRect()
public final void setZoomRect(android.graphics.RectF mZoomRect)
public final float getZoomScale()
public final void setZoomScale(float mZoomScale)
public final ImageOrientation getImageOrientation()
public final void setImageOrientation(ImageOrientation mImageOrientation)
public final int getCurrentRatioType()
org.lasque.tusdk.impl.components.edit.TuEditCuterFragment.RatioType}
public final void setCurrentRatioType(int mCurrentRatioType)
mCurrentRatioType
- the mCurrentRatioType to setratio
- 自由裁剪比例org.lasque.tusdk.impl.components.edit.TuEditCuterFragment.RatioType}
public final float getCurrentRatio()
public final void setCuterResult(TuSdkResult result)
protected void handleCompleteButton()
protected void asyncEditWithResult(TuSdkResult result)