LegacyRenderingController.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package epson.print.service;
  2. import com.epson.iprint.apf.ApfEpImageAdapter;
  3. import epson.print.EPImageList;
  4. import epson.print.screen.PrintSetting;
  5. public class LegacyRenderingController implements RenderingController {
  6. EPImageList mEpImageList;
  7. PrintService mEpsonService;
  8. PrintSetting.Kind mKind;
  9. public void interruptSubThreads() {
  10. }
  11. public void joinSubThread(long j) {
  12. }
  13. public void startDrawAfterStartJob(int i) {
  14. }
  15. public void waitPage(int i, int i2) throws Exception {
  16. }
  17. public LegacyRenderingController(PrintService printService, EPImageList ePImageList, PrintSetting.Kind kind) {
  18. mEpsonService = printService;
  19. mEpImageList = ePImageList;
  20. mKind = kind;
  21. }
  22. public void drawBeforeStartJob() throws LocalInterrupt {
  23. if (mEpImageList.apfModeInPrinting != 0 || mEpImageList.getSharpness() != 0) {
  24. EPImageList apfImageList = ApfEpImageAdapter.getApfImageList(mEpsonService.getLocalApplicationContext(), mEpImageList, mEpsonService);
  25. apfImageList.setRenderingMode(mEpImageList.getRenderingMode());
  26. if (mEpsonService.getCancelPrinting()) {
  27. throw new LocalInterrupt();
  28. } else if (apfImageList != null) {
  29. mEpImageList = apfImageList;
  30. } else {
  31. throw new IllegalStateException();
  32. }
  33. }
  34. }
  35. public EPImageList getImageList() {
  36. return mEpImageList;
  37. }
  38. public PrintSetting.Kind getKind() {
  39. return mKind;
  40. }
  41. }