Interface ReshapeListener
-
- All Known Implementing Classes:
DefaultReshapeListener
public interface ReshapeListener
Instances can be registered on aReshapeWorker
to be informed about the progress of the rendering / reshaping process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ReshapeListener.Context
The context of the reshaping process in which the listener methods are invoked.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
done(ReshapeListener.Context context)
Called each time a reshape process is successfully completed.void
failed(ReshapeListener.Context context, Exception cause)
Called each time a reshape process is unsuccessfully terminated.void
pageDone(ReshapeListener.Context context, com.levigo.jadice.document.Page page)
Called each time a reshape process successfully finishes reshaping aPage
.void
pageFailed(ReshapeListener.Context context, com.levigo.jadice.document.Page page, Exception cause)
Called each time a reshape process unsuccessfully terminates reshaping aPage
.void
pageStarted(ReshapeListener.Context context, com.levigo.jadice.document.Page page)
Called each time a reshape process starts reshaping aPage
.void
started(ReshapeListener.Context context)
Called when a reshape process is started.
-
-
-
Method Detail
-
started
void started(ReshapeListener.Context context)
Called when a reshape process is started.- Parameters:
context
- theReshapeListener.Context
of this action
-
done
void done(ReshapeListener.Context context)
Called each time a reshape process is successfully completed.- Parameters:
context
- theReshapeListener.Context
of this action
-
failed
void failed(ReshapeListener.Context context, Exception cause)
Called each time a reshape process is unsuccessfully terminated.- Parameters:
context
- theReshapeListener.Context
of this actioncause
- gives the reason for the unsuccessful termination
-
pageStarted
void pageStarted(ReshapeListener.Context context, com.levigo.jadice.document.Page page)
Called each time a reshape process starts reshaping aPage
.- Parameters:
context
- theReshapeListener.Context
of this actionpage
- the current page being reshaped
-
pageDone
void pageDone(ReshapeListener.Context context, com.levigo.jadice.document.Page page)
Called each time a reshape process successfully finishes reshaping aPage
.- Parameters:
context
- theReshapeListener.Context
of this actionpage
- the page being reshaped
-
pageFailed
void pageFailed(ReshapeListener.Context context, com.levigo.jadice.document.Page page, Exception cause)
Called each time a reshape process unsuccessfully terminates reshaping aPage
.- Parameters:
context
- theReshapeListener.Context
of this actionpage
- the page being reshapedcause
- gives the reason for the unsuccessful termination
-
-