39 |
package javax.imageio; |
package javax.imageio; |
40 |
|
|
41 |
/** |
/** |
42 |
|
* An interface to set image parameters. An IIOParamController may be |
43 |
|
* a GUI component, a database reader, command-line parser or any |
44 |
|
* other means of getting parameter settings. For exampe, a dialog |
45 |
|
* box could implement IIOParamController to allow a user to adjust |
46 |
|
* JPEG compression levels. |
47 |
|
* |
48 |
|
* The activate method should always behave modally; it should only |
49 |
|
* return when the action has been either cancelled or completed. |
50 |
|
* |
51 |
* @author Michael Koch (konqueror@gmx.de) |
* @author Michael Koch (konqueror@gmx.de) |
52 |
*/ |
*/ |
53 |
public interface IIOParamController |
public interface IIOParamController |
54 |
{ |
{ |
55 |
/** |
/** |
56 |
* Activates the controller. |
* Activates the controller. A return value of false should mean |
57 |
|
* that no changes were made to param. A return value of true |
58 |
|
* should mean that the image is ready to be read or written. |
59 |
* |
* |
60 |
* @param param the <code>IIOParam</code> to be modified |
* @param param the <code>IIOParam</code> to be modified |
61 |
* |
* |