App
GaussianBlurFilterCancelableTool.java
Go to the documentation of this file.
1 package mhr.appcore.tools.cancelable.filter;
2 
3 import mhr.appcore.image.Image;
4 import mhr.appcore.tools.actiondata.CancelableToolActionData;
5 import mhr.appcore.tools.actiondata.GaussianBlurFilterCancelableToolActionData;
6 
11 
12  //===== INTERFACES, CLASSES, ENUMS ==========================================================================================================//
13  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
14  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
15 
16  //===== FIELDS ==============================================================================================================================//
17  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
18 
19  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
20 
21  //===== CONSTRUCTORS, DESTRUCTORS, RELATED METHODS ==========================================================================================//
22  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
23  @Override
24  protected void finalize() throws Throwable {
25  dispose();
26  super.finalize();
27  }
28 
29  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
31 
32  }
33 
34  @Override
35  public void dispose() {
36  super.dispose();
37  }
38 
39  //===== METHODS =============================================================================================================================//
40  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
41  @Override
42  protected void onPreview(Image img, CancelableToolActionData data) {
43  if (!(data instanceof GaussianBlurFilterCancelableToolActionData)) {
44  throw new IllegalArgumentException("Received data for different tool");
45  } else {
46  GaussianBlurFilterCancelableToolActionData d = (GaussianBlurFilterCancelableToolActionData) data;
48  }
49  }
50  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
51 
52  //===== CALLBACKS ===========================================================================================================================//
53 
54  //----- destruktory -------------------------------------------------------------------------------------------------------------------------//
55 
56  //----- metody ------------------------------------------------------------------------------------------------------------------------------//
57 
58 }