Package org.apache.poi.hwpf.usermodel
Class NotesImpl
java.lang.Object
org.apache.poi.hwpf.usermodel.NotesImpl
- All Implemented Interfaces:
Notes
Default implementation of
Notes
interface- Author:
- Sergey Vladimirov (vlsergey {at} gmail {doc} com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getNoteAnchorPosition
(int index) Returns the location of note anchor in main textspaceint
getNoteIndexByAnchorPosition
(int anchorPosition) Returns index of note (if exists, otherwise -1) with specified anchor positionint
Returns count of notes in documentint
getNoteTextEndOffset
(int index) Returns the end offset of the text corresponding to the reference within the footnote text address spaceint
getNoteTextStartOffset
(int index) Returns the start offset of the text corresponding to the reference within the footnote text address space
-
Constructor Details
-
NotesImpl
-
-
Method Details
-
getNoteAnchorPosition
public int getNoteAnchorPosition(int index) Description copied from interface:Notes
Returns the location of note anchor in main textspace- Specified by:
getNoteAnchorPosition
in interfaceNotes
-
getNoteIndexByAnchorPosition
public int getNoteIndexByAnchorPosition(int anchorPosition) Description copied from interface:Notes
Returns index of note (if exists, otherwise -1) with specified anchor position- Specified by:
getNoteIndexByAnchorPosition
in interfaceNotes
-
getNotesCount
public int getNotesCount()Description copied from interface:Notes
Returns count of notes in document- Specified by:
getNotesCount
in interfaceNotes
-
getNoteTextEndOffset
public int getNoteTextEndOffset(int index) Description copied from interface:Notes
Returns the end offset of the text corresponding to the reference within the footnote text address space- Specified by:
getNoteTextEndOffset
in interfaceNotes
-
getNoteTextStartOffset
public int getNoteTextStartOffset(int index) Description copied from interface:Notes
Returns the start offset of the text corresponding to the reference within the footnote text address space- Specified by:
getNoteTextStartOffset
in interfaceNotes
-