HighlightListener inteface must be implemented to handle highlight related events on ReflowableLayout.
- Author
- skytree
Highlights com.skytree.epub.HighlightListener.getHighlightsForChapter |
( |
int |
chapterIndex | ) |
|
called whenever engine needs to read all highlights of specific chapter. Highlights object should be created and returned to engine for chapter index.
- Parameters
-
chapterIndex | chapter index |
- Returns
- Highlights object
Bitmap com.skytree.epub.HighlightListener.getNoteIconBitmapForColor |
( |
int |
color, |
|
|
int |
style |
|
) |
| |
called when sdk engine needs for the Bitmap for a given color.
- Parameters
-
color | the color of note icon |
- Returns
- Bitmap for the color
Rect com.skytree.epub.HighlightListener.getNoteIconRect |
( |
int |
color, |
|
|
int |
style |
|
) |
| |
called when sdk needs the Rect for note icon
- Returns
- Rect object for note icon.
void com.skytree.epub.HighlightListener.onHighlightDeleted |
( |
Highlight |
highlight | ) |
|
called a highlight is to be deleted by engine when highlighs are merged into on highlight.
- Parameters
-
void com.skytree.epub.HighlightListener.onHighlightHit |
( |
Highlight |
highlight, |
|
|
int |
x, |
|
|
int |
y, |
|
|
Rect |
startRect, |
|
|
Rect |
endRect |
|
) |
| |
called when user touched on existing highlight.
- Parameters
-
highlight | Highlight object touched. |
x | x coordination touched. |
y | y coordination touched. |
void com.skytree.epub.HighlightListener.onHighlightInserted |
( |
Highlight |
highlight | ) |
|
called when new highlight is inserted.
- Parameters
-
void com.skytree.epub.HighlightListener.onNoteIconHit |
( |
Highlight |
highlight | ) |
|
called when user taps on note icon
- Parameters
-
highlight | Highlight object to which this note is belonging to |
The documentation for this interface was generated from the following file:
- /Users/skytree/Documents/Projects/workspace/SkyReader/src/com/skytree/epub/HighlightListener.java