- Type Parameters:
PX
- the generic type
- All Superinterfaces:
Dimension
,Dimension.DimensionAccessor
,Dimension.DimensionBuilder<PixmapImageBuilder<PX>>
,Dimension.DimensionMutator
,Dimension.DimensionProperty
,HeightAccessor
,HeightAccessor.HeightBuilder<PixmapImageBuilder<PX>>
,HeightAccessor.HeightMutator
,HeightAccessor.HeightProperty
,WidthAccessor
,WidthAccessor.WidthBuilder<PixmapImageBuilder<PX>>
,WidthAccessor.WidthMutator
,WidthAccessor.WidthProperty
- All Known Implementing Classes:
RgbPixmapImageBuilder
public interface PixmapImageBuilder<PX>
extends Dimension.DimensionProperty, Dimension.DimensionBuilder<PixmapImageBuilder<PX>>
The Interface PixmapImageBuilder.
-
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
setImageFile
(File aImageFile) Sets the URL for retrieving the image data for the image 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.toPixmap()
To pixmap.default PixmapImageBuilder<PX>
withImageFile
(File aImageFile) Sets theFile
for retrieving the image data for the image property.default PixmapImageBuilder<PX>
withImageInputStream
(InputStream aImageStream) Sets the input stream for retrieving the image data for the image property.default PixmapImageBuilder<PX>
withImageURL
(URL aUrl) Sets theURL
for retrieving the image data for the image property.Methods inherited from interface org.refcodes.graphical.Dimension.DimensionBuilder
withDimension, withDimension
Methods inherited from interface org.refcodes.graphical.Dimension.DimensionMutator
setDimension, setDimension
Methods inherited from interface org.refcodes.graphical.Dimension.DimensionProperty
letDimension, letDimension
Methods inherited from interface org.refcodes.graphical.HeightAccessor
getHeight
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightBuilder
withHeight
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightMutator
setHeight
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightProperty
letHeight
Methods inherited from interface org.refcodes.graphical.WidthAccessor
getWidth
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthBuilder
withWidth
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthMutator
setWidth
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthProperty
letWidth
-
Method Details
-
toPixmap
To pixmap.- Returns:
- the pixmap
- Throws:
IOException
- thrown in case of IO related problems.
-
setImageInputStream
Sets theInputStream
for retrieving the image data for the image property.- Parameters:
aImageStream
- The image which'sInputStream
is to be stored by the imageInputStream
property.
-
withImageInputStream
Sets the input stream for retrieving the image data for the image property.- Parameters:
aImageStream
- The image which'sInputStream
is to be stored by the imageInputStream
property.- Returns:
- The builder for applying multiple build operations.
-
setImageURL
Sets theURL
for retrieving the image data for the image property. -
withImageURL
Sets theURL
for retrieving the image data for the image property.- Parameters:
aUrl
- the URL- Returns:
- The builder for applying multiple build operations.
-
setImageFile
Sets the URL for retrieving the image data for the image property.- Parameters:
aImageFile
- The image file which'sInputStream
is to be stored by the imageInputStream
property.- Throws:
FileNotFoundException
- in case the file was not found.
-
withImageFile
Sets theFile
for retrieving the image data for the image property.- 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.
-