Guest User

Untitled

a guest
Dec 10th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /**
  2. * Ujian Akhir Semester
  3. * Kelas PBO B
  4. * @author Hendra Ramadani (05111740000055)
  5. * 10 December 2018
  6. */
  7. public abstract class Filter
  8. {
  9. private String name;
  10.  
  11. /**
  12. * Create a new filter with a given name.
  13. * @param name The name of the filter.
  14. */
  15. public Filter(String name)
  16. {
  17. this.name = name;
  18. }
  19.  
  20. /**
  21. * Return the name of this filter.
  22. *
  23. * @return The name of this filter.
  24. */
  25. public String getName()
  26. {
  27. return name;
  28. }
  29.  
  30. /**
  31. * Apply this filter to an image.
  32. *
  33. * @param image The image to be changed by this filter.
  34. */
  35. public abstract void apply(OFImage image);
  36. }
Add Comment
Please, Sign In to add comment