public static class RgbPixmapImpl.RgbPixmapPropertyBuilderImpl extends RgbPixmapImpl implements RgbPixmap.RgbPixmapPropertyBuilder
RgbPixmapImpl.RgbPixmapPropertyBuilderImpl
RgbPixmap.RgbPixmapBuilder<B extends RgbPixmap.RgbPixmapBuilder<B>>, RgbPixmap.RgbPixmapMutator, RgbPixmap.RgbPixmapProperty, RgbPixmap.RgbPixmapPropertyBuilder
Pixmap.PixmapBuilder<PX,B extends Pixmap.PixmapBuilder<PX,B>>, Pixmap.PixmapMutator<PX>, Pixmap.PixmapProperty<PX>, Pixmap.PixmapPropertyBuilder<PX,B extends Pixmap.PixmapPropertyBuilder<PX,B>>
_pixels
Constructor and Description |
---|
RgbPixmapPropertyBuilderImpl()
Instantiates a new rgb pixmap property builder impl.
|
RgbPixmapPropertyBuilderImpl(int aWidth,
int aHeight)
Instantiates a new rgb pixmap property builder impl.
|
RgbPixmapPropertyBuilderImpl(RgbPixel[][] aPixels)
Instantiates a new rgb pixmap property builder impl.
|
Modifier and Type | Method and Description |
---|---|
void |
setPixelAt(int aPixel,
int aPosX,
int aPosY)
Sets an integer value interpreted as pixel in the pixmap.
|
void |
setPixelAt(RgbPixel aPixel,
int aPosX,
int aPosY)
Sets a pixel in the pixmap.
|
void |
setPixels(RgbPixel[][] aPixels)
Sets the pixels.
|
RgbPixmap.RgbPixmapPropertyBuilder |
withPixelAt(int aPixel,
int aPosX,
int aPosY)
Sets an integer value interpreted as pixel in the pixmap.
|
RgbPixmap.RgbPixmapPropertyBuilder |
withPixelAt(RgbPixel aPixel,
int aPosX,
int aPosY)
Sets the pixmap for the pixmap property.
|
RgbPixmap.RgbPixmapPropertyBuilder |
withPixels(RgbPixel[][] aPixels)
With pixels.
|
getPixelAt, getPixels, getPixmapHeight, getPixmapWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPixelAt, getPixels, getPixmapHeight, getPixmapWidth
public RgbPixmapPropertyBuilderImpl()
public RgbPixmapPropertyBuilderImpl(int aWidth, int aHeight)
aWidth
- the a widthaHeight
- the a heightpublic RgbPixmapPropertyBuilderImpl(RgbPixel[][] aPixels)
aPixels
- the a pixelspublic RgbPixmap.RgbPixmapPropertyBuilder withPixels(RgbPixel[][] aPixels)
withPixels
in interface Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapPropertyBuilder>
aPixels
- the a pixelspublic void setPixelAt(RgbPixel aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
setPixelAt
in interface Pixmap.PixmapMutator<RgbPixel>
aPixel
- The pixel to be placed at the given position.aPosX
- The x position of the pixel.aPosY
- The y position of the pixel.IndexOutOfBoundsException
- in case the index is out of bounds.public void setPixels(RgbPixel[][] aPixels)
setPixels
in interface Pixmap.PixmapMutator<RgbPixel>
aPixels
- the new pixelspublic RgbPixmap.RgbPixmapPropertyBuilder withPixelAt(RgbPixel aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
withPixelAt
in interface Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapPropertyBuilder>
aPixel
- the a pixelaPosX
- the a pos XaPosY
- the a pos YIndexOutOfBoundsException
- in case the index is out of bounds.public RgbPixmap.RgbPixmapPropertyBuilder withPixelAt(int aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
withPixelAt
in interface RgbPixmap.RgbPixmapBuilder<RgbPixmap.RgbPixmapPropertyBuilder>
aPixel
- The pixel to be placed at the given position.aPosX
- The x position of the pixel.aPosY
- The y position of the pixel.IndexOutOfBoundsException
- in case the index is out of bounds.public void setPixelAt(int aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
setPixelAt
in interface RgbPixmap.RgbPixmapMutator
aPixel
- The pixel to be placed at the given position.aPosX
- The x position of the pixel.aPosY
- The y position of the pixel.IndexOutOfBoundsException
- in case the index is out of bounds.Copyright © 2018. All rights reserved.