Interface Pixmap.PixmapProperty<PX>

Type Parameters:
PX - The type of the pixel being managed by the Pixmap.
All Superinterfaces:
HeightAccessor, Pixmap<PX>, Pixmap.PixmapMutator<PX>, WidthAccessor
All Known Subinterfaces:
Pixmap.PixmapBuilder<PX,B>, RgbPixmap.RgbPixmapBuilder, RgbPixmap.RgbPixmapProperty
All Known Implementing Classes:
RgbPixmapBuilderImpl
Enclosing interface:
Pixmap<PX>

public static interface Pixmap.PixmapProperty<PX> extends Pixmap<PX>, Pixmap.PixmapMutator<PX>
Provides a pixmap property.
  • Method Details

    • letPixels

      default PX[][] letPixels(PX[][] aPixels)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given pixels (setter) as of Pixmap.PixmapMutator.setPixels(Object[][]) and returns the very same value (getter).
      Parameters:
      aPixels - The pixels to set (via Pixmap.PixmapMutator.setPixels(Object[][])).
      Returns:
      Returns the value passed for it to be used in conclusive processing steps.
    • letRgbAt

      default PX letRgbAt(PX aPixel, int aPosX, int aPosY)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given pixels (setter) as of Pixmap.PixmapMutator.setPixelAt(Object, int, int) and returns the very same value (getter).
      Parameters:
      aPixel - The pixel to set.
      aPosX - The X position where to set the pixel.
      aPosY - The Y position where to set the pixel.
      Returns:
      Returns the pixel passed for it to be used in conclusive processing steps.