mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@9 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
08ac45f2b0
commit
aff1368f14
3 changed files with 15 additions and 2 deletions
6
src/org/zlibrary/model/ZLModelFactory.java
Normal file
6
src/org/zlibrary/model/ZLModelFactory.java
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
package org.zlibrary.model;
|
||||||
|
|
||||||
|
public abstract class ZLModelFactory {
|
||||||
|
public abstract ZLTextModel createModel();
|
||||||
|
public abstract ZLTextParagraph createParagraph();
|
||||||
|
}
|
|
@ -12,7 +12,8 @@ public interface ZLTextModel {
|
||||||
Kind getKind();
|
Kind getKind();
|
||||||
int getParagraphsNumber();
|
int getParagraphsNumber();
|
||||||
ZLTextParagraph getParagraph(int index);
|
ZLTextParagraph getParagraph(int index);
|
||||||
void selectParagraph(int index);
|
|
||||||
|
void addParagraphInternal(ZLTextParagraph paragraph);
|
||||||
|
|
||||||
void addControl(byte textKind, boolean isStart);
|
void addControl(byte textKind, boolean isStart);
|
||||||
void addText(String text);
|
void addText(String text);
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
package org.zlibrary.model;
|
package org.zlibrary.model;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.zlibrary.model.entry.ZLTextParagraphEntry;
|
||||||
|
|
||||||
public interface ZLTextParagraph {
|
public interface ZLTextParagraph {
|
||||||
enum Kind {
|
enum Kind {
|
||||||
TEXT_PARAGRAPH,
|
TEXT_PARAGRAPH,
|
||||||
|
@ -8,4 +12,6 @@ public interface ZLTextParagraph {
|
||||||
Kind getKind();
|
Kind getKind();
|
||||||
int getEntryNumber();
|
int getEntryNumber();
|
||||||
int getTextLength();
|
int getTextLength();
|
||||||
|
List<ZLTextParagraphEntry> getEntries();
|
||||||
|
void addEntry(ZLTextParagraphEntry entry);
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue