java.lang.Object
org.refcodes.graphical.RgbPixmapImageBuilder
- All Implemented Interfaces:
Dimension
,Dimension.DimensionAccessor
,Dimension.DimensionBuilder<PixmapImageBuilder<RgbPixel>>
,Dimension.DimensionMutator
,Dimension.DimensionProperty
,HeightAccessor
,HeightAccessor.HeightBuilder<PixmapImageBuilder<RgbPixel>>
,HeightAccessor.HeightMutator
,HeightAccessor.HeightProperty
,PixmapImageBuilder<RgbPixel>
,WidthAccessor
,WidthAccessor.WidthBuilder<PixmapImageBuilder<RgbPixel>>
,WidthAccessor.WidthMutator
,WidthAccessor.WidthProperty
The Class RgbPixmapImageBuilderImpl.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.graphical.Dimension
Dimension.DimensionAccessor, Dimension.DimensionBuilder<B extends Dimension.DimensionBuilder<B>>, Dimension.DimensionMutator, Dimension.DimensionProperty
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.WidthAccessor
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the height from the height property.int
getWidth()
Retrieves the width from the width property.void
setDimension
(int aWidth, int aHeight) Sets the dimension.void
setDimension
(Dimension aDimension) Sets the dimension.void
setHeight
(int aHeight) Sets the height for the height property.void
setImageInputStream
(InputStream aImageStream) Sets theInputStream
for retrieving the image data for the image property.void
setImageURL
(URL aImageUrl) Sets theURL
for retrieving the image data for the image property.void
setWidth
(int aWidth) Sets the width for the width property.toPixmap()
To pixmap.To pixmap.toPixmap
(InputStream aImageStream) To pixmap.withDimension
(int aWidth, int aHeight) With dimension.withDimension
(Dimension aDimension) With dimension.withHeight
(int aHeight) Sets the height for the height property.withImageFile
(File aImageFile) Sets theFile
for retrieving the image data for the image property.withImageInputStream
(InputStream aImageStream) Sets the input stream for retrieving the image data for the image property.withImageURL
(URL aImageUrl) Sets theURL
for retrieving the image data for the image property.withWidth
(int aWidth) Sets the width for the width property.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.Dimension.DimensionProperty
letDimension, letDimension
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightProperty
letHeight
Methods inherited from interface org.refcodes.graphical.PixmapImageBuilder
setImageFile
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthProperty
letWidth
-
Constructor Details
-
RgbPixmapImageBuilder
public RgbPixmapImageBuilder()
-
-
Method Details
-
getWidth
public int getWidth()Retrieves the width from the width property.- Specified by:
getWidth
in interfaceWidthAccessor
- Returns:
- The width stored by the width property.
-
getHeight
public int getHeight()Retrieves the height from the height property.- Specified by:
getHeight
in interfaceHeightAccessor
- Returns:
- The height stored by the height property.
-
setDimension
public void setDimension(int aWidth, int aHeight) Sets the dimension.- Specified by:
setDimension
in interfaceDimension.DimensionMutator
- Parameters:
aWidth
- the widthaHeight
- the height
-
setDimension
Sets the dimension.- Specified by:
setDimension
in interfaceDimension.DimensionMutator
- Parameters:
aDimension
- the new dimension
-
setWidth
public void setWidth(int aWidth) Sets the width for the width property.- Specified by:
setWidth
in interfaceWidthAccessor.WidthMutator
- Parameters:
aWidth
- The width to be stored by the width property.
-
setHeight
public void setHeight(int aHeight) Sets the height for the height property.- Specified by:
setHeight
in interfaceHeightAccessor.HeightMutator
- Parameters:
aHeight
- The height to be stored by the height property.
-
withDimension
With dimension.- Specified by:
withDimension
in interfaceDimension.DimensionBuilder<PixmapImageBuilder<RgbPixel>>
- Parameters:
aWidth
- the widthaHeight
- the height- Returns:
- the b
-
withDimension
With dimension.- Specified by:
withDimension
in interfaceDimension.DimensionBuilder<PixmapImageBuilder<RgbPixel>>
- Parameters:
aDimension
- the dimension- Returns:
- the b
-
withWidth
Sets the width for the width property.- Specified by:
withWidth
in interfaceWidthAccessor.WidthBuilder<PixmapImageBuilder<RgbPixel>>
- Parameters:
aWidth
- The width to be stored by the width property.- Returns:
- The builder for applying multiple build operations.
-
withHeight
Sets the height for the height property.- Specified by:
withHeight
in interfaceHeightAccessor.HeightBuilder<PixmapImageBuilder<RgbPixel>>
- Parameters:
aHeight
- The height to be stored by the height property.- Returns:
- The builder for applying multiple build operations.
-
setImageInputStream
Sets theInputStream
for retrieving the image data for the image property.- Specified by:
setImageInputStream
in interfacePixmapImageBuilder<RgbPixel>
- Parameters:
aImageStream
- The image which'sInputStream
is to be stored by the imageInputStream
property.
-
setImageURL
Sets theURL
for retrieving the image data for the image property.- Specified by:
setImageURL
in interfacePixmapImageBuilder<RgbPixel>
- Parameters:
aImageUrl
- The image which'sURL
is to be stored by the imageURL
property.
-
toPixmap
To pixmap.- Specified by:
toPixmap
in interfacePixmapImageBuilder<RgbPixel>
- Returns:
- the pixmap
- Throws:
IOException
- thrown in case of IO related problems.
-
toPixmap
To pixmap.- Parameters:
aImageStream
- the image stream- Returns:
- the rgb pixmap
- Throws:
IOException
- thrown in case there were IO problems.
-
withImageInputStream
Sets the input stream for retrieving the image data for the image property.- Specified by:
withImageInputStream
in interfacePixmapImageBuilder<RgbPixel>
- Parameters:
aImageStream
- The image which'sInputStream
is to be stored by the imageInputStream
property.- Returns:
- The builder for applying multiple build operations.
-
withImageFile
Sets theFile
for retrieving the image data for the image property.- Specified by:
withImageFile
in interfacePixmapImageBuilder<RgbPixel>
- Parameters:
aImageFile
- The image file which'sInputStream
is to be stored by the imageInputStream
property.- Returns:
- The builder for applying multiple build operations.
- Throws:
FileNotFoundException
- in case the file was not found.
-
withImageURL
Sets theURL
for retrieving the image data for the image property.- Specified by:
withImageURL
in interfacePixmapImageBuilder<RgbPixel>
- Parameters:
aImageUrl
- the URL- Returns:
- The builder for applying multiple build operations.
-
toPixmap
To pixmap.- Parameters:
aImageFile
- the image file- Returns:
- the rgb pixmap
- Throws:
IOException
- thrown in ase there were IO problems.
-