1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-06 03:50:19 +02:00
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@379 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
Nikolay Pultsin 2007-12-12 04:58:01 +00:00
parent 8b9759130a
commit 065fbdf465

View file

@ -13,53 +13,53 @@ import org.zlibrary.text.model.entry.ZLTextHyperlinkControlEntry;
public class ZLModelFactory { public class ZLModelFactory {
//models //models
public ZLTextModel createModel() { public ZLTextModel createModel() {
return new ZLTextModelImpl(); return new ZLTextModelImpl();
} }
public ZLTextPlainModel createPlainModel() { public ZLTextPlainModel createPlainModel() {
return new ZLTextPlainModelImpl(); return new ZLTextPlainModelImpl();
} }
public ZLTextTreeModel createZLTextTreeModel() { public ZLTextTreeModel createZLTextTreeModel() {
return new ZLTextTreeModelImpl(); return new ZLTextTreeModelImpl();
} }
//paragraphs //paragraphs
public ZLTextParagraph createParagraph() { public ZLTextParagraph createParagraph() {
return new ZLTextParagraphImpl(); return new ZLTextParagraphImpl();
} }
public ZLTextParagraph createSpecialParagragraph(ZLTextParagraph.Kind kind) { public ZLTextParagraph createSpecialParagragraph(ZLTextParagraph.Kind kind) {
return new ZLTextSpecialParagraphImpl(kind); return new ZLTextSpecialParagraphImpl(kind);
} }
public ZLTextTreeParagraph createTreeParagraph(ZLTextTreeParagraph parent) { public ZLTextTreeParagraph createTreeParagraph(ZLTextTreeParagraph parent) {
return new ZLTextTreeParagraphImpl(parent); return new ZLTextTreeParagraphImpl(parent);
} }
public ZLTextTreeParagraph createTreeParagraph() { public ZLTextTreeParagraph createTreeParagraph() {
return new ZLTextTreeParagraphImpl(null); return new ZLTextTreeParagraphImpl(null);
} }
//entries //entries
public ZLTextControlEntry createControlEntry(byte kind, boolean isStart) { public ZLTextControlEntry createControlEntry(byte kind, boolean isStart) {
return new ZLTextControlEntryImpl(kind, isStart); return new ZLTextControlEntryImpl(kind, isStart);
} }
public ZLTextEntry createTextEntry(String text) { public ZLTextEntry createTextEntry(String text) {
return new ZLTextEntryImpl(text.toCharArray()); return new ZLTextEntryImpl(text.toCharArray());
} }
public ZLTextHyperlinkControlEntry createHyperlinkControlEntry(byte kind, String label) { public ZLTextHyperlinkControlEntry createHyperlinkControlEntry(byte kind, String label) {
return new ZLTextHyperlinkControlEntryImpl(kind, label); return new ZLTextHyperlinkControlEntryImpl(kind, label);
} }
public ZLTextFixedHSpaceEntry createFixedHSpaceEntry(byte lenght) { public ZLTextFixedHSpaceEntry createFixedHSpaceEntry(byte lenght) {
return new ZLTextFixedHSpaceEntryImpl(lenght); return new ZLTextFixedHSpaceEntryImpl(lenght);
} }
public ZLTextForcedControlEntry createForcedControlEntry() { public ZLTextForcedControlEntry createForcedControlEntry() {
return new ZLTextForcedControlEntryImpl(); return new ZLTextForcedControlEntryImpl();
} }
} }