java.lang.Object |
↳ |
AndroidViewModel |
|
↳ |
com.pdftron.pdf.widget.preset.component.PresetBarViewModel |
Class Overview
View Model that manages the preset bar state
Summary
Public Methods |
void
|
dismissStyleDialog()
|
void
|
generatePreview(int toolbarButtonType, String stampId)
|
PresetBarState
|
getPresetBarState()
|
boolean
|
hasCountMeasurementPresets()
|
void
|
hidePresetBar()
|
void
|
observePresetState(LifecycleOwner owner, observer)
|
void
|
observeSinglePresetImageFile(LifecycleOwner owner, observer)
|
void
|
openStyleDialog()
|
void
|
reloadPreset(Context context, int annotType)
|
void
|
reloadSignaturePreset(Context context, int annotType, String toolbarStyleId, int index)
|
void
|
reloadStampPreset(Context context, int annotType, String toolbarStyleId, int index)
|
void
|
saveCountMeasurementPreset(String label, AnnotStyle annotStyle, String toolbarStyleId, int index)
|
void
|
saveStampPreset(Context context, int annotType, String stampId, String toolbarStyleId, int index)
|
void
|
saveStampPreset(int annotType, String stampId)
|
void
|
selectPreset(int index)
|
void
|
setPresetBarState(PresetBarState presetStateList)
|
void
|
showPresetBar()
|
void
|
updateAnnotStyles(ArrayList<AnnotStyle> annotStyles, int index)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
PresetBarViewModel
(Application application)
Public Methods
public
void
dismissStyleDialog
()
public
void
generatePreview
(int toolbarButtonType, String stampId)
public
boolean
hasCountMeasurementPresets
()
public
void
hidePresetBar
()
public
void
observePresetState
(LifecycleOwner owner, observer)
public
void
observeSinglePresetImageFile
(LifecycleOwner owner, observer)
public
void
openStyleDialog
()
public
void
reloadPreset
(Context context, int annotType)
public
void
reloadSignaturePreset
(Context context, int annotType, String toolbarStyleId, int index)
public
void
reloadStampPreset
(Context context, int annotType, String toolbarStyleId, int index)
public
void
saveCountMeasurementPreset
(String label, AnnotStyle annotStyle, String toolbarStyleId, int index)
public
void
saveStampPreset
(Context context, int annotType, String stampId, String toolbarStyleId, int index)
public
void
saveStampPreset
(int annotType, String stampId)
public
void
selectPreset
(int index)
public
void
showPresetBar
()
public
void
updateAnnotStyles
(ArrayList<AnnotStyle> annotStyles, int index)