Package org.refcodes.graphical
Class RgbPixmapImpl.RgbPixmapPropertyBuilderImpl
- java.lang.Object
-
- org.refcodes.graphical.RgbPixmapImpl
-
- org.refcodes.graphical.RgbPixmapImpl.RgbPixmapPropertyBuilderImpl
-
- All Implemented Interfaces:
Pixmap<RgbPixmap.RgbPixmapPropertyBuilder>
,Pixmap.PixmapBuilder<RgbPixel,B>
,Pixmap.PixmapMutator<RgbPixmap.RgbPixmapPropertyBuilder>
,Pixmap.PixmapProperty<RgbPixmap.RgbPixmapPropertyBuilder>
,RgbPixmap
,RgbPixmap.RgbPixmapBuilder<RgbPixmap.RgbPixmapPropertyBuilder>
,RgbPixmap.RgbPixmapMutator
,RgbPixmap.RgbPixmapProperty
,RgbPixmap.RgbPixmapPropertyBuilder
- Enclosing class:
- RgbPixmapImpl
public static class RgbPixmapImpl.RgbPixmapPropertyBuilderImpl extends RgbPixmapImpl implements RgbPixmap.RgbPixmapPropertyBuilder
The Class RgbPixmapPropertyBuilderImpl.
-
-
Nested Class Summary
-
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>, Pixmap.PixmapPropertyBuilder<PX,B extends Pixmap.PixmapPropertyBuilder<PX,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.RgbPixmap
RgbPixmap.RgbPixmapBuilder<B extends RgbPixmap.RgbPixmapBuilder<B>>, RgbPixmap.RgbPixmapMutator, RgbPixmap.RgbPixmapProperty, RgbPixmap.RgbPixmapPropertyBuilder
-
Nested classes/interfaces inherited from class org.refcodes.graphical.RgbPixmapImpl
RgbPixmapImpl.RgbPixmapPropertyBuilderImpl
-
-
Field Summary
-
Fields inherited from class org.refcodes.graphical.RgbPixmapImpl
_pixels
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.graphical.Pixmap
getPixelAt, getPixels, getPixmapHeight, getPixmapWidth
-
Methods inherited from class org.refcodes.graphical.RgbPixmapImpl
getPixelAt, getPixels, getPixmapHeight, getPixmapWidth
-
-
-
-
Constructor Detail
-
RgbPixmapPropertyBuilderImpl
public RgbPixmapPropertyBuilderImpl()
Instantiates a new rgb pixmap property builder impl.
-
RgbPixmapPropertyBuilderImpl
public RgbPixmapPropertyBuilderImpl(int aWidth, int aHeight)
Instantiates a new rgb pixmap property builder impl.- Parameters:
aWidth
- the widthaHeight
- the height
-
RgbPixmapPropertyBuilderImpl
public RgbPixmapPropertyBuilderImpl(RgbPixel[][] aPixels)
Instantiates a new rgb pixmap property builder impl.- Parameters:
aPixels
- the pixels
-
-
Method Detail
-
withPixels
public RgbPixmap.RgbPixmapPropertyBuilder withPixels(RgbPixel[][] aPixels)
With pixels.- Specified by:
withPixels
in interfacePixmap.PixmapBuilder<RgbPixel,B extends RgbPixmap.RgbPixmapBuilder<B>>
- Parameters:
aPixels
- the pixels- Returns:
- the b
-
setPixelAt
public void setPixelAt(RgbPixel aPixel, int aPosX, int aPosY) throws java.lang.IndexOutOfBoundsException
Sets a pixel in the pixmap.- Specified by:
setPixelAt
in interfacePixmap.PixmapMutator<RgbPixmap.RgbPixmapPropertyBuilder>
- 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.- Throws:
java.lang.IndexOutOfBoundsException
- in case the index is out of bounds.
-
setPixels
public void setPixels(RgbPixel[][] aPixels)
Sets the pixels.- Specified by:
setPixels
in interfacePixmap.PixmapMutator<RgbPixmap.RgbPixmapPropertyBuilder>
- Parameters:
aPixels
- the new pixels
-
withPixelAt
public RgbPixmap.RgbPixmapPropertyBuilder withPixelAt(RgbPixel aPixel, int aPosX, int aPosY) throws java.lang.IndexOutOfBoundsException
Sets the pixmap for the pixmap property.- Specified by:
withPixelAt
in interfacePixmap.PixmapBuilder<RgbPixel,B extends RgbPixmap.RgbPixmapBuilder<B>>
- Parameters:
aPixel
- the pixelaPosX
- the pos XaPosY
- the pos Y- Returns:
- The builder for applying multiple build operations.
- Throws:
java.lang.IndexOutOfBoundsException
- in case the index is out of bounds.
-
withPixelAt
public RgbPixmap.RgbPixmapPropertyBuilder withPixelAt(int aPixel, int aPosX, int aPosY) throws java.lang.IndexOutOfBoundsException
Sets an integer value interpreted as pixel in the pixmap.- Specified by:
withPixelAt
in interfaceRgbPixmap.RgbPixmapBuilder<RgbPixmap.RgbPixmapPropertyBuilder>
- 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 b
- Throws:
java.lang.IndexOutOfBoundsException
- in case the index is out of bounds.
-
setPixelAt
public void setPixelAt(int aPixel, int aPosX, int aPosY) throws java.lang.IndexOutOfBoundsException
Sets an integer value interpreted as pixel in the pixmap.- Specified by:
setPixelAt
in interfaceRgbPixmap.RgbPixmapMutator
- 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.- Throws:
java.lang.IndexOutOfBoundsException
- in case the index is out of bounds.
-
-