public class

CountToolCreatePresetDialog

extends DialogFragment
implements AnnotStyle.AnnotStyleHolder
java.lang.Object
   ↳ DialogFragment
     ↳ com.pdftron.pdf.dialog.measurecount.CountToolCreatePresetDialog

Summary

Nested Classes
class CountToolCreatePresetDialog.Builder Builder for building annotation style dialog  
interface CountToolCreatePresetDialog.CountToolCreatePresetDialogListener  
class CountToolCreatePresetDialog.Theme  
Fields
public static final String TAG
Public Constructors
CountToolCreatePresetDialog()
Public Methods
void dismiss()
AnnotationPropertyPreviewView getAnnotPreview()
Abstract method for getting current annotation style preview view
SparseArray<AnnotationPropertyPreviewView> getAnnotPreviews()
Abstract method for getting all annotation style preview views
AnnotStyle getAnnotStyle()
Abstract method for getting annotation style
static CountToolCreatePresetDialog newInstance()
Creates a new instance of CountToolCreatePresetDialog
void onAnnotStyleLayoutUpdated()
Abstract method to notify when the annot style layout has changed
void onCreate(Bundle savedInstanceState)
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void onSaveInstanceState(Bundle outState)
void onViewStateRestored(Bundle savedInstanceState)
void saveAnnotStyles()
Saves annotation styles to settings
void setAnnotPreviewVisibility(int visibility)
Abstract method for setting annotation style preview visibility
void setAnnotStyle(AnnotStyle annotStyle)
void setAnnotStyleProperties(HashMap<Integer, AnnotStyleProperty> annotStyleProperties)
Sets the AnnotStyleProperties that will be used to hide elements of the AnnotStyleDialog.
void setListener(CountToolCreatePresetDialog.CountToolCreatePresetDialogListener listener)
void setMeasureCountToolViewModel(MeasureCountToolViewModel measureCountToolViewModel)
void setPresetBarViewModel(PresetBarViewModel presetBarViewModel)
void setToolbarStyleId(String toolbarStyleId)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.model.AnnotStyle.AnnotStyleHolder

Fields

public static final String TAG

Public Constructors

public CountToolCreatePresetDialog ()

Public Methods

public void dismiss ()

public AnnotationPropertyPreviewView getAnnotPreview ()

Abstract method for getting current annotation style preview view

Returns
  • preview of annotation style

public SparseArray<AnnotationPropertyPreviewView> getAnnotPreviews ()

Abstract method for getting all annotation style preview views

Returns
  • preview of annotation style

public AnnotStyle getAnnotStyle ()

Abstract method for getting annotation style

Returns
  • annotation style

public static CountToolCreatePresetDialog newInstance ()

Creates a new instance of CountToolCreatePresetDialog

Returns
  • a new CountToolCreatePresetDialog

public void onAnnotStyleLayoutUpdated ()

Abstract method to notify when the annot style layout has changed

public void onCreate (Bundle savedInstanceState)

public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

public void onSaveInstanceState (Bundle outState)

public void onViewStateRestored (Bundle savedInstanceState)

public void saveAnnotStyles ()

Saves annotation styles to settings

public void setAnnotPreviewVisibility (int visibility)

Abstract method for setting annotation style preview visibility

public void setAnnotStyle (AnnotStyle annotStyle)

public void setAnnotStyleProperties (HashMap<Integer, AnnotStyleProperty> annotStyleProperties)

Sets the AnnotStyleProperties that will be used to hide elements of the AnnotStyleDialog.

Parameters
annotStyleProperties hash map of annot types and the AnnotStyleProperties

public void setMeasureCountToolViewModel (MeasureCountToolViewModel measureCountToolViewModel)

public void setPresetBarViewModel (PresetBarViewModel presetBarViewModel)

public void setToolbarStyleId (String toolbarStyleId)