- All Superinterfaces:
HeightAccessor
,Pixmap<RgbPixel>
,Pixmap.PixmapBuilder<RgbPixel,
,RgbPixmap.RgbPixmapBuilder> Pixmap.PixmapMutator<RgbPixel>
,Pixmap.PixmapProperty<RgbPixel>
,RgbPixmap
,RgbPixmap.RgbPixmapMutator
,RgbPixmap.RgbPixmapProperty
,WidthAccessor
- All Known Implementing Classes:
RgbPixmapBuilderImpl
- Enclosing interface:
- RgbPixmap
public static interface RgbPixmap.RgbPixmapBuilder
extends Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapBuilder>, RgbPixmap.RgbPixmapProperty
The Interface RgbPixmapBuilder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.graphical.HeightAccessor
HeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.Pixmap
Pixmap.PixmapBuilder<PX,
B extends Pixmap.PixmapBuilder<PX, B>>, Pixmap.PixmapMutator<PX>, Pixmap.PixmapProperty<PX> Nested classes/interfaces inherited from interface org.refcodes.graphical.RgbPixmap
RgbPixmap.RgbPixmapBuilder, RgbPixmap.RgbPixmapMutator, RgbPixmap.RgbPixmapProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.WidthAccessor
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault RgbPixmap.RgbPixmapBuilder
withColorlAt
(Color aPixel, int aPosX, int aPosY) Sets an integer value interpreted as pixel in the pixmap.default RgbPixmap.RgbPixmapBuilder
withRgbAt
(int aRgbPixel, int aPosX, int aPosY) Sets an integer value interpreted as pixel in the pixmap.Methods inherited from interface org.refcodes.graphical.Pixmap
getHeight, getPixelAt, getPixels, getWidth, hasPixelAt
Methods inherited from interface org.refcodes.graphical.Pixmap.PixmapBuilder
mergeColorArrays, mergeWith, mergeWith, withPixelAt, withPixels
Methods inherited from interface org.refcodes.graphical.Pixmap.PixmapMutator
setPixelAt, setPixels
Methods inherited from interface org.refcodes.graphical.Pixmap.PixmapProperty
letPixels, letRgbAt
Methods inherited from interface org.refcodes.graphical.RgbPixmap
getColorAt, getRgbAt
Methods inherited from interface org.refcodes.graphical.RgbPixmap.RgbPixmapMutator
setColorAt, setRgbAt
Methods inherited from interface org.refcodes.graphical.RgbPixmap.RgbPixmapProperty
letColorAt, letRgbAt
-
Method Details
-
withRgbAt
Sets an integer value interpreted as pixel in the pixmap.- Parameters:
aRgbPixel
- The pixel to be placed at the given position.aPosX
- The x position of the pixel.aPosY
- The y position of the pixel.- Returns:
- the RgbPixmapBuilder
- Throws:
IndexOutOfBoundsException
- in case the index is out of bounds.
-
withColorlAt
Sets an integer value interpreted as pixel in the pixmap.- Parameters:
aPixel
- The pixel to be placed at the given position.aPosX
- The x position of the pixel.aPosY
- The y position of the pixel.- Returns:
- the RgbPixmapBuilder
- Throws:
IndexOutOfBoundsException
- in case the index is out of bounds.
-