Interface ContourPlot.PixelManipulator<P extends ContourPlot.PixelBase,​T>

  • Type Parameters:
    P - the pixel type of the converter (PixelBase or an implementation of it)
    T - the element type of the converter (the type a pixel is converted to before applying the action)
    Enclosing class:
    ContourPlot

    public static interface ContourPlot.PixelManipulator<P extends ContourPlot.PixelBase,​T>
    The PixelManipulator interface defines an action to be performed on a pixel. The action however is performed on a different representation of the pixel which is given by the manipulators converter.

    This works the following way:

    1. convert pixel to element using the converter
    2. apply the action on the element
    3. convert the element back to pixel using the converter

    This is used with an image's forEach method (see ContourPlot.ImgBase.forEach(PixelManipulator))

    Since:
    2.0
    Author:
    hageldave