public class TuEditCuterFragment extends TuEditCuterFragmentBase
限定符和类型 | 类和说明 |
---|---|
static interface |
TuEditCuterFragment.TuEditCuterFragmentDelegate
图片编辑裁切旋转控制器委托
|
mRegionLayoutChangeListener
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuEditCuterFragment()
图片编辑裁切旋转控制器
|
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected TuSdkTextButton |
buildRatioActionButton(int ratioType,
int totalNum)
创建动作按钮视图
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
TuMaskRegionView |
getCutRegionView()
裁剪选取视图
|
TuEditCuterFragment.TuEditCuterFragmentDelegate |
getDelegate()
图片编辑裁切旋转控制器委托
|
android.widget.RelativeLayout |
getImageWrapView()
图片包装视图
|
static int |
getLayoutId()
布局ID
|
android.widget.ImageView |
getMirrorButton()
镜像按钮
|
android.widget.LinearLayout |
getOptionBar()
配置调节栏目
|
java.util.List<TuSdkTextButton> |
getRatioButtons()
比例列表按钮
|
int |
getRatioType()
裁剪比例类型 (默认:RatioType.ratio_all)
|
int[] |
getRatioTypeList()
裁剪比例类型列表 ( 优先级 RatioTypeList > RatioType, 默认:RatioType.ratioTypes)
|
int[] |
getRatioTypes()
获取显示的比例类型列表
|
android.widget.ImageView |
getTrunButton()
旋转按钮
|
protected void |
handleBackButton()
后退按钮
|
protected void |
handleRatioButton(TuSdkTextButton v)
改变比例按钮
|
void |
hubStatus(java.lang.String status)
显示信息
|
boolean |
isOnlyReturnCuter()
是否仅返回裁切参数,不返回处理图片
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
protected void |
notifyProcessing(TuSdkResult result)
通知处理结果
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
void |
processingImage()
启动裁剪
|
void |
setDelegate(TuEditCuterFragment.TuEditCuterFragmentDelegate mDelegate)
图片编辑裁切旋转控制器委托
|
void |
setOnlyReturnCuter(boolean mOnlyReturnCuter)
是否仅返回裁切参数,不返回处理图片
|
void |
setRatioType(int mRatioType)
裁剪比例 (默认:RatioType.ratio_all)
|
void |
setRatioTypeList(int[] mRatioTypeList)
裁剪比例类型列表 ( 优先级 RatioTypeList > RatioType, 默认:RatioType.ratioTypes)
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncEditWithResult, getCurrentRatio, getCurrentRatioType, getImageOrientation, getImageView, getZoomRect, getZoomScale, handleCompleteButton, onRegionLayoutChanged, setCurrentRatioType, setCuterResult, setImageOrientation, setZoomRect, setZoomScale
asyncLoadImage, asyncLoadImageCompleted, getCuterImage, getCuterImage, getImage, getImageDisplaySize, getImageSqlInfo, getPreview, getTempFilePath, handleTest, isAutoRemoveTemp, isShowResultPreview, loadImageWithThread, loadOrginImage, onDestroyView, postProcessWithImage, preProcessWithImage, 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, hubSuccess, hubSuccess, initCreateView, 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 static int getLayoutId()
public TuEditCuterFragment.TuEditCuterFragmentDelegate getDelegate()
public void setDelegate(TuEditCuterFragment.TuEditCuterFragmentDelegate mDelegate)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
protected void notifyProcessing(TuSdkResult result)
notifyProcessing
在类中 TuResultFragment
result
- SDK处理结果protected boolean asyncNotifyProcessing(TuSdkResult result)
asyncNotifyProcessing
在类中 TuResultFragment
result
- SDK处理结果public int getRatioType()
public void setRatioType(int mRatioType)
public final int[] getRatioTypeList()
public final void setRatioTypeList(int[] mRatioTypeList)
public final int[] getRatioTypes()
getRatioTypes
在类中 TuEditCuterFragmentBase
public boolean isOnlyReturnCuter()
isOnlyReturnCuter
在类中 TuEditCuterFragmentBase
public void setOnlyReturnCuter(boolean mOnlyReturnCuter)
public android.widget.RelativeLayout getImageWrapView()
getImageWrapView
在类中 TuEditCuterFragmentBase
public TuMaskRegionView getCutRegionView()
getCutRegionView
在类中 TuEditCuterFragmentBase
public android.widget.LinearLayout getOptionBar()
public java.util.List<TuSdkTextButton> getRatioButtons()
protected TuSdkTextButton buildRatioActionButton(int ratioType, int totalNum)
public android.widget.ImageView getTrunButton()
public android.widget.ImageView getMirrorButton()
protected void dispatcherViewClick(android.view.View v)
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuEditCuterFragmentBase
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuEditCuterFragmentBase
protected void handleBackButton()
public void processingImage()
processingImage
在类中 TuImageResultFragment
public void hubStatus(java.lang.String status)
TuFragment
hubStatus
在类中 TuFragment
status
- 信息protected void handleRatioButton(TuSdkTextButton v)