mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
cleanup
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@379 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
8b9759130a
commit
065fbdf465
1 changed files with 46 additions and 46 deletions
|
@ -13,53 +13,53 @@ import org.zlibrary.text.model.entry.ZLTextHyperlinkControlEntry;
|
|||
|
||||
|
||||
public class ZLModelFactory {
|
||||
//models
|
||||
//models
|
||||
public ZLTextModel createModel() {
|
||||
return new ZLTextModelImpl();
|
||||
}
|
||||
|
||||
public ZLTextPlainModel createPlainModel() {
|
||||
return new ZLTextPlainModelImpl();
|
||||
}
|
||||
|
||||
public ZLTextTreeModel createZLTextTreeModel() {
|
||||
return new ZLTextTreeModelImpl();
|
||||
}
|
||||
//paragraphs
|
||||
public ZLTextParagraph createParagraph() {
|
||||
return new ZLTextParagraphImpl();
|
||||
}
|
||||
|
||||
public ZLTextParagraph createSpecialParagragraph(ZLTextParagraph.Kind kind) {
|
||||
return new ZLTextSpecialParagraphImpl(kind);
|
||||
}
|
||||
|
||||
public ZLTextTreeParagraph createTreeParagraph(ZLTextTreeParagraph parent) {
|
||||
return new ZLTextTreeParagraphImpl(parent);
|
||||
}
|
||||
|
||||
public ZLTextTreeParagraph createTreeParagraph() {
|
||||
return new ZLTextTreeParagraphImpl(null);
|
||||
}
|
||||
return new ZLTextModelImpl();
|
||||
}
|
||||
|
||||
public ZLTextPlainModel createPlainModel() {
|
||||
return new ZLTextPlainModelImpl();
|
||||
}
|
||||
|
||||
public ZLTextTreeModel createZLTextTreeModel() {
|
||||
return new ZLTextTreeModelImpl();
|
||||
}
|
||||
//paragraphs
|
||||
public ZLTextParagraph createParagraph() {
|
||||
return new ZLTextParagraphImpl();
|
||||
}
|
||||
|
||||
public ZLTextParagraph createSpecialParagragraph(ZLTextParagraph.Kind kind) {
|
||||
return new ZLTextSpecialParagraphImpl(kind);
|
||||
}
|
||||
|
||||
public ZLTextTreeParagraph createTreeParagraph(ZLTextTreeParagraph parent) {
|
||||
return new ZLTextTreeParagraphImpl(parent);
|
||||
}
|
||||
|
||||
public ZLTextTreeParagraph createTreeParagraph() {
|
||||
return new ZLTextTreeParagraphImpl(null);
|
||||
}
|
||||
|
||||
//entries
|
||||
public ZLTextControlEntry createControlEntry(byte kind, boolean isStart) {
|
||||
return new ZLTextControlEntryImpl(kind, isStart);
|
||||
}
|
||||
|
||||
public ZLTextEntry createTextEntry(String text) {
|
||||
return new ZLTextEntryImpl(text.toCharArray());
|
||||
}
|
||||
|
||||
public ZLTextHyperlinkControlEntry createHyperlinkControlEntry(byte kind, String label) {
|
||||
return new ZLTextHyperlinkControlEntryImpl(kind, label);
|
||||
}
|
||||
//entries
|
||||
public ZLTextControlEntry createControlEntry(byte kind, boolean isStart) {
|
||||
return new ZLTextControlEntryImpl(kind, isStart);
|
||||
}
|
||||
|
||||
public ZLTextEntry createTextEntry(String text) {
|
||||
return new ZLTextEntryImpl(text.toCharArray());
|
||||
}
|
||||
|
||||
public ZLTextHyperlinkControlEntry createHyperlinkControlEntry(byte kind, String label) {
|
||||
return new ZLTextHyperlinkControlEntryImpl(kind, label);
|
||||
}
|
||||
|
||||
public ZLTextFixedHSpaceEntry createFixedHSpaceEntry(byte lenght) {
|
||||
return new ZLTextFixedHSpaceEntryImpl(lenght);
|
||||
}
|
||||
|
||||
public ZLTextForcedControlEntry createForcedControlEntry() {
|
||||
return new ZLTextForcedControlEntryImpl();
|
||||
}
|
||||
public ZLTextFixedHSpaceEntry createFixedHSpaceEntry(byte lenght) {
|
||||
return new ZLTextFixedHSpaceEntryImpl(lenght);
|
||||
}
|
||||
|
||||
public ZLTextForcedControlEntry createForcedControlEntry() {
|
||||
return new ZLTextForcedControlEntryImpl();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue