java.lang.Object | |
↳ | com.pdftron.pdf.controls.AnnotStyleDialogFragment.Builder |
Builder for building annotation style dialog
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder()
Creates a builder for an annotation style dialog
| |||||||||||
Builder(AnnotStyle annotStyle)
Creates a builder for an annotation style dialog with given annotation style
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnnotStyleDialogFragment |
build()
Creates an
AnnotStyleDialogFragment with the arguments supplied to this builder. | ||||||||||
AnnotStyleDialogFragment.Builder |
setAnchor(Rect anchor)
Sets anchor rectangle in window location for tablet mode.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setAnchor(RectF anchor)
Sets anchor rectangle in window location for tablet mode.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setAnchorInScreen(Rect anchor)
Sets anchor rectangle in screen position for tablet mode.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setAnchorView(View view)
Sets anchor view for tablet mode.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setAnnotStyle(AnnotStyle annotStyle)
Sets annotation style to the builder, it is used for setting annotation style for dialog
| ||||||||||
AnnotStyleDialogFragment.Builder |
setExtraAnnotStyles(ArrayList<AnnotStyle> extraAnnotStyles)
Sets extra annotation styles to the builder, if valid, extra annotation styles will be shown in tabs
| ||||||||||
AnnotStyleDialogFragment.Builder |
setFontListFromAsset(Set<String> fontList)
Sets custom font list from Asset for free text tool.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setFontListFromStorage(Set<String> fontList)
Sets custom font list from Storage for free text tool.
| ||||||||||
AnnotStyleDialogFragment.Builder | setGroupAnnotTypes(ArrayList<AnnotStyle> annotStyles) | ||||||||||
AnnotStyleDialogFragment.Builder | setInitialTabIndex(int tabIndex) | ||||||||||
AnnotStyleDialogFragment.Builder |
setMoreAnnotTypes(int tabIndex, ArrayList<Integer> annotTypes)
Sets more annot types to show in annotation style dialog
| ||||||||||
AnnotStyleDialogFragment.Builder |
setMoreAnnotTypes(ArrayList<Integer> annotTypes)
Sets more annot types to show in annotation style dialog
| ||||||||||
AnnotStyleDialogFragment.Builder |
setShowHorizontally(boolean showRight)
Whether to prioritize showing the dialog to the left or right of the anchor.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setShowPreset(boolean showPreset)
Whether to show the preset list.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setShowPressureSensitivePreview(boolean showPressurePreview)
Sets whether to show pressure sensitive thickness preview for signatures.
| ||||||||||
AnnotStyleDialogFragment.Builder |
setShowPreview(boolean showPreview)
Whether to show the preview.
| ||||||||||
AnnotStyleDialogFragment.Builder | setTabTitles(String[] tabTitles) | ||||||||||
AnnotStyleDialogFragment.Builder |
setWhiteListFont(Set<String> whiteListFont)
Sets white list fonts.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a builder for an annotation style dialog
Creates a builder for an annotation style dialog with given annotation style
annotStyle | The annotation style for building the dialog |
---|
Creates an AnnotStyleDialogFragment
with the arguments supplied to this builder.
AnnotStyleDialogFragment
Sets anchor rectangle in window location for tablet mode. The annotation style dialog will be displayed around the anchor rectangle.
This is equivalent to call setAnchor(RectF)
anchor | The anchor rectangle |
---|
Sets anchor rectangle in window location for tablet mode.
The annotation style dialog will be displayed around the anchor rectangle.
You can get window location of a view as follows:
int[] pos = new int[2]; view.getLocationInWindow(pos); RectF rect = new RectF(pos[0], pos[1], pos[0] + view.getWidth(), pos[1] + view.getHeight()); builder.setAnchor(rect);
where view
is an instance of View, and builder
is an instance of AnnotStyleDialogFragment.Builder
anchor | The anchor rectangle |
---|
Sets anchor rectangle in screen position for tablet mode. The annotation style dialog will be displayed around the anchor rectangle.
You can get screen location of a view as follows:
int[] pos = new int[2]; view.getLocationInScreen(pos); RectF rect = new RectF(pos[0], pos[1], pos[0] + view.getWidth(), pos[1] + view.getHeight()); builder.setAnchorInScreen(rect);
where view
is an instance of View, and builder
is an instance of AnnotStyleDialogFragment.Builder
anchor | The anchor rectangle |
---|
Sets anchor view for tablet mode. The annotation style dialog will be displayed around the anchor rectangle.
view | The anchor view |
---|
Sets annotation style to the builder, it is used for setting annotation style for dialog
annotStyle | The annotation style for building dialog. This is equivalent to call: new Builder(annotStyle) |
---|
Sets extra annotation styles to the builder, if valid, extra annotation styles will be shown in tabs
extraAnnotStyles | The extra annotation styles for building dialog. |
---|
Sets custom font list from Asset for free text tool.
You can get font list fonts from getFreeTextFontsFromAssets()
fontList | The font list from asset |
---|
Sets custom font list from Storage for free text tool.
You can get font list fonts from getFreeTextFontsFromStorage()
fontList | The font list from storage |
---|
Sets more annot types to show in annotation style dialog
annotTypes | annot types to add |
---|
Sets more annot types to show in annotation style dialog
annotTypes | annot types to add |
---|
Whether to prioritize showing the dialog to the left or right of the anchor. Prioritizes showing on left side if possible.
Whether to show the preset list. By default this is true.
showPreset | true if showing the preset |
---|
Sets whether to show pressure sensitive thickness preview for signatures.
showPressurePreview | true to show pressure sensitive thickness preview, false otherwise |
---|
Whether to show the preview. By default this is true.
showPreview | true if showing the preview |
---|
Sets white list fonts. You can get white list fonts from getFreeTextFonts()
whiteListFont | The white list fonts. |
---|