mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
メソッドチェーン対応WIP
This commit is contained in:
parent
c167d83940
commit
28cae3fa19
|
@ -7,13 +7,13 @@ import one.nem.lacerta.model.document.DocumentDetail;
|
||||||
public interface DocumentProcessor {
|
public interface DocumentProcessor {
|
||||||
|
|
||||||
// ページ操作
|
// ページ操作
|
||||||
void addNewPageToLast(Bitmap bitmap) throws Exception;
|
DocumentProcessor addNewPageToLast(Bitmap bitmap) throws Exception;
|
||||||
void addNewPagesToLast(Bitmap[] bitmaps) throws Exception;
|
DocumentProcessor addNewPagesToLast(Bitmap[] bitmaps) throws Exception;
|
||||||
void insertPageAtIndex(Bitmap bitmap, int index) throws Exception;
|
DocumentProcessor insertPageAtIndex(Bitmap bitmap, int index) throws Exception;
|
||||||
void removePageAtIndex(int index) throws Exception;
|
DocumentProcessor removePageAtIndex(int index) throws Exception;
|
||||||
|
|
||||||
// 更新
|
// 更新
|
||||||
void updatePageAtIndex(Bitmap bitmap, int index);
|
DocumentProcessor updatePageAtIndex(Bitmap bitmap, int index);
|
||||||
|
|
||||||
// ページ取得
|
// ページ取得
|
||||||
Bitmap getPageAtIndex(int index);
|
Bitmap getPageAtIndex(int index);
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addNewPageToLast(Bitmap bitmap) throws Exception{
|
public DocumentProcessor addNewPageToLast(Bitmap bitmap) throws Exception{
|
||||||
logger.debug("addNewPageToLast", "called");
|
logger.debug("addNewPageToLast", "called");
|
||||||
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addNewPagesToLast(Bitmap[] bitmaps) throws Exception{
|
public DocumentProcessor addNewPagesToLast(Bitmap[] bitmaps) throws Exception{
|
||||||
logger.debug("addNewPagesToLast", "called");
|
logger.debug("addNewPagesToLast", "called");
|
||||||
|
|
||||||
for (Bitmap bitmap : bitmaps) {
|
for (Bitmap bitmap : bitmaps) {
|
||||||
|
@ -97,7 +97,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void insertPageAtIndex(Bitmap bitmap, int index) throws Exception {
|
public DocumentProcessor insertPageAtIndex(Bitmap bitmap, int index) throws Exception {
|
||||||
logger.debug("addNewPageAfterIndex", "called");
|
logger.debug("addNewPageAfterIndex", "called");
|
||||||
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
||||||
|
|
||||||
|
@ -112,12 +112,12 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removePageAtIndex(int index) {
|
public DocumentProcessor removePageAtIndex(int index) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updatePageAtIndex(Bitmap bitmap, int index) {
|
public DocumentProcessor updatePageAtIndex(Bitmap bitmap, int index) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user