public static class CPDFEditConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(CPDFEditConfig editConfig) |
Modifier and Type | Method and Description |
---|---|
CPDFEditConfig |
build()
Returns the latest built
CPDFEditConfig . |
CPDFEditConfig.Builder |
setCropImageBorderColor(int color)
Sets the color of the border of crop image.
|
CPDFEditConfig.Builder |
setCropImageBorderDashArr(float[] defaultBorderDashArr)
Sets the array of ON and OFF distances of the border of crop image.
|
CPDFEditConfig.Builder |
setCropImageBorderWidth(float width)
Sets the width of the border of crop image.
|
CPDFEditConfig.Builder |
setCursorColor(int cursorColor)
Sets the displayed cursor color when editing text content in the text block.
|
CPDFEditConfig.Builder |
setCursorWidth(float cursorWidth)
Sets the displayed cursor width when editing text content in the text block.
|
CPDFEditConfig.Builder |
setDefalutBoardColor(int defaultBoardColor)
Sets the border color of the unselected text block.
|
CPDFEditConfig.Builder |
setDefalutBoardWidth(float defaultBoardWidth)
Sets the border width of the unselected text block.
|
CPDFEditConfig.Builder |
setDefaultBorderDashArr(float[] defaultBorderDashArr)
Sets the array of ON and OFF distances of the border of unselected text.
|
CPDFEditConfig.Builder |
setFocusBorderColor(int focusBorderColor)
Sets the border color of the selected text block.
|
CPDFEditConfig.Builder |
setFocusBorderDashArr(float[] focusBorderDashArr) |
CPDFEditConfig.Builder |
setFocusBorderWidth(int focusBorderWidth)
Sets the border width of the selected text block.
|
CPDFEditConfig.Builder |
setFormPreviewPaint(android.graphics.Paint formPreviewPaint)
In Form mode, draw rectangles with a drawing paint to select an area.
|
CPDFEditConfig.Builder |
setReplaceColor(int color) |
CPDFEditConfig.Builder |
setRotateAnnotationDrawableRes(int rotateAnnotationDrawableRes)
Sets the image resource of the button that is used to rotate the annotation.
|
CPDFEditConfig.Builder |
setScreenshotBorderColor(int color) |
CPDFEditConfig.Builder |
setScreenshotBorderDash(float[] dash) |
CPDFEditConfig.Builder |
setScreenshotRectColor(int color) |
CPDFEditConfig.Builder |
setSelectDrawableRes(int selectDrawableRes)
Sets the image resource of the bottom control buoy of the moving cursor when editing text content in the text block.
|
CPDFEditConfig.Builder |
setSelectLeftDrawableRes(int selectLeftDrawableRes)
Sets the image resource of the left control buoy when editing text content in the text block and multi-selecting text content.
|
CPDFEditConfig.Builder |
setSelectRightDrawableRes(int selectRightDrawableRes)
Sets the image resource of the right control buoy when editing text content in the text block and multi-selecting text content.
|
CPDFEditConfig.Builder |
setSelectTextColor(int color) |
CPDFEditConfig.Builder |
setTouchNodeColor(int nodeColor)
Sets the color of the touch node of the width of the border of the text block in the selected status.
|
CPDFEditConfig.Builder |
setTouchNodeRadius(float nodeRadius)
Sets the radius of the touch node of the width of the border of the text block in the selected status.
|
CPDFEditConfig.Builder |
setWhenKeyboardShownMarginBottom(int marginBottom)
Sets the distance between the bottom of the cursor and the keyboard when keyboard pops up and covers the text area.
|
public Builder()
public Builder(CPDFEditConfig editConfig)
public CPDFEditConfig.Builder setSelectTextColor(int color)
public CPDFEditConfig.Builder setDefalutBoardColor(int defaultBoardColor)
public CPDFEditConfig.Builder setDefalutBoardWidth(float defaultBoardWidth)
public CPDFEditConfig.Builder setDefaultBorderDashArr(float[] defaultBorderDashArr)
public CPDFEditConfig.Builder setFocusBorderDashArr(float[] focusBorderDashArr)
public CPDFEditConfig.Builder setCropImageBorderDashArr(float[] defaultBorderDashArr)
public CPDFEditConfig.Builder setCropImageBorderColor(int color)
public CPDFEditConfig.Builder setCropImageBorderWidth(float width)
public CPDFEditConfig.Builder setFocusBorderWidth(int focusBorderWidth)
public CPDFEditConfig.Builder setFocusBorderColor(int focusBorderColor)
public CPDFEditConfig.Builder setCursorColor(int cursorColor)
public CPDFEditConfig.Builder setCursorWidth(float cursorWidth)
public CPDFEditConfig.Builder setSelectLeftDrawableRes(int selectLeftDrawableRes)
public CPDFEditConfig.Builder setSelectRightDrawableRes(int selectRightDrawableRes)
public CPDFEditConfig.Builder setRotateAnnotationDrawableRes(int rotateAnnotationDrawableRes)
public CPDFEditConfig.Builder setSelectDrawableRes(int selectDrawableRes)
public CPDFEditConfig.Builder setTouchNodeRadius(float nodeRadius)
public CPDFEditConfig.Builder setTouchNodeColor(int nodeColor)
public CPDFEditConfig.Builder setWhenKeyboardShownMarginBottom(int marginBottom)
public CPDFEditConfig.Builder setReplaceColor(int color)
public CPDFEditConfig.Builder setScreenshotRectColor(int color)
public CPDFEditConfig.Builder setScreenshotBorderColor(int color)
public CPDFEditConfig.Builder setScreenshotBorderDash(float[] dash)
public CPDFEditConfig.Builder setFormPreviewPaint(android.graphics.Paint formPreviewPaint)
formPreviewPaint
- public CPDFEditConfig build()
CPDFEditConfig
.