Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference to JAI in API and javadocs #13

Open
jodygarnett opened this issue May 9, 2019 · 0 comments
Open

Reference to JAI in API and javadocs #13

jodygarnett opened this issue May 9, 2019 · 0 comments

Comments

@jodygarnett
Copy link
Contributor

jodygarnett commented May 9, 2019

I am not quite sure how to balance between:

  • Offering an easy migration path for projects porting from JAI
  • Removing JAI references from documentation and API to prevent confusion

My best idea is to deprecate methods and classes that reference JAI while introducing ImageN replacements:

public class ImageN {
   // JAI Core
  protected static final int HINT_IMAGE_LAYOUT = 101;
  ...
  public static RenderingHints.Key KEY_IMAGE_LAYOUT =
     new RenderingKey(HINT_IMAGE_LAYOUT, ImageLayout.class);
}
/**
 *
 * @deprecated Use ImageN
 */
public final class JAI extends ImageN {
   ....
}

There is also something to be said for just just going directly to ImageN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant