public class

AutoScrollEditText

extends AppCompatEditText
java.lang.Object
   ↳ AppCompatEditText
     ↳ com.pdftron.pdf.widget.AutoScrollEditText

Class Overview

An EditText that can auto scroll

Summary

Nested Classes
interface AutoScrollEditText.AutoScrollEditTextListener Listener interface for key up event  
interface AutoScrollEditText.AutoScrollEditTextSpacingListener  
Public Constructors
AutoScrollEditText(Context context)
AutoScrollEditText(Context context, AttributeSet attrs)
AutoScrollEditText(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void addLetterSpacingHandle()
Must be called after setAnnotStyle(PDFViewCtrl, AnnotStyle) with a valid AnnotStyle
Rect getBoundingRect()
InputFilter[] getDefaultInputFilters()
Gets the default input filters used internally
boolean getDynamicLetterSpacingEnabled()
boolean getIsRTL()
boolean isSuggestionsEnabled()
InputConnection onCreateInputConnection(EditorInfo editorInfo)
boolean onKeyPreIme(int keyCode, KeyEvent event)
boolean onKeyUp(int keyCode, KeyEvent event)
boolean onTouchEvent(MotionEvent event)
void removeSpacingHandle()
void setAnnotStyle(AnnotViewImpl annotViewImpl)
void setAnnotStyle(PDFViewCtrl pdfViewCtrl, AnnotStyle annotStyle)
void setAutoScrollEditTextListener(AutoScrollEditText.AutoScrollEditTextListener listener)
Sets auto scroll edit text listener
void setAutoScrollEditTextSpacingListener(AutoScrollEditText.AutoScrollEditTextSpacingListener listener)
void setBackgroundColor(int color)
void setCalculateAlignment(boolean calculateAlignment)
Sets whether the alignment should be calculated manually.
void setDefaultRect(Rect defaultRect)
Sets default rect for the FreeText annotation, see putDefaultRect(FreeText, Rect)
void setDrawBackground(boolean drawBackground)
void setHorizontalTextAlignment(int gravity)
Sets the horizontal text alignment without changing the gravity.
void setSize(float width, float height)
void setUseAutoResize(boolean useAutoResize)
void setVerticalTextAlignment(int gravity)
Sets the vertical text alignment without changing the gravity.
void setZoom(double zoom)
void updateBBox()
void updateColor(int color)
void updateFillColor(int color)
void updateFont(FontResource font)
void updateOpacity(float opacity)
void updateTextColor(int textColor)
void updateTextSize(float textSize)
void updateThickness(float thickness)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AutoScrollEditText (Context context)

public AutoScrollEditText (Context context, AttributeSet attrs)

public AutoScrollEditText (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void addLetterSpacingHandle ()

Must be called after setAnnotStyle(PDFViewCtrl, AnnotStyle) with a valid AnnotStyle

public Rect getBoundingRect ()

public InputFilter[] getDefaultInputFilters ()

Gets the default input filters used internally

public boolean getDynamicLetterSpacingEnabled ()

public boolean getIsRTL ()

public boolean isSuggestionsEnabled ()

public InputConnection onCreateInputConnection (EditorInfo editorInfo)

public boolean onKeyPreIme (int keyCode, KeyEvent event)

public boolean onKeyUp (int keyCode, KeyEvent event)

public boolean onTouchEvent (MotionEvent event)

public void removeSpacingHandle ()

public void setAnnotStyle (AnnotViewImpl annotViewImpl)

public void setAnnotStyle (PDFViewCtrl pdfViewCtrl, AnnotStyle annotStyle)

public void setAutoScrollEditTextListener (AutoScrollEditText.AutoScrollEditTextListener listener)

Sets auto scroll edit text listener

Parameters
listener The listener

public void setAutoScrollEditTextSpacingListener (AutoScrollEditText.AutoScrollEditTextSpacingListener listener)

public void setBackgroundColor (int color)

public void setCalculateAlignment (boolean calculateAlignment)

Sets whether the alignment should be calculated manually. If set to true, then a dummy text view will be used to calculate the bounding box.

public void setDefaultRect (Rect defaultRect)

Sets default rect for the FreeText annotation, see putDefaultRect(FreeText, Rect)

Parameters
defaultRect the default rect in page space

public void setDrawBackground (boolean drawBackground)

public void setHorizontalTextAlignment (int gravity)

Sets the horizontal text alignment without changing the gravity. The gravity will be set the next time the user starts typing.

public void setSize (float width, float height)

public void setUseAutoResize (boolean useAutoResize)

public void setVerticalTextAlignment (int gravity)

Sets the vertical text alignment without changing the gravity. The gravity will be set the next time the user starts typing.

public void setZoom (double zoom)

public void updateBBox ()

public void updateColor (int color)

public void updateFillColor (int color)

public void updateFont (FontResource font)

public void updateOpacity (float opacity)

public void updateTextColor (int textColor)

public void updateTextSize (float textSize)

public void updateThickness (float thickness)