Interface ContourPlot.ImgBase<P extends ContourPlot.PixelBase>

Type Parameters:
P - the pixel type of the image
All Superinterfaces:
Iterable<P>
All Known Implementing Classes:
ContourPlot.Img
Enclosing class:
ContourPlot

public static interface ContourPlot.ImgBase<P extends ContourPlot.PixelBase> extends Iterable<P>
Base interface for imagingkit's Img classes.

This interface defines the most basic methods like getting the dimensions of an image and converting an image to BufferedImage.

Appart from that it defines and implements all the Iterable functionality which is based on ContourPlot.PixelBase. The Iterable Functionality also comprises Spliterators as well as the forEach(Consumer) and stream() functionality.

The Graphics2D related functionality like createGraphics() and paint(Consumer) is by default based on getRemoteBufferedImage(). If it is possible to create a remote BufferedImage from the implemented data structure, the method should be overridden to enable the mentioned funtionality.

Since:
2.0
Author:
hageldave