Package org.refcodes.graphical
Interface PixmapImageBuilder<PX>
-
- Type Parameters:
PX
- the generic type
- All Superinterfaces:
BuildPixmap<PX>
,Dimension
,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 Subinterfaces:
RgbPixmapImageBuilder
- All Known Implementing Classes:
RgbPixmapImageBuilderImpl
public interface PixmapImageBuilder<PX> extends BuildPixmap<PX>, Dimension.DimensionProperty, Dimension.DimensionBuilder<PixmapImageBuilder<PX>>
The Interface PixmapImageBuilder.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.Dimension
Dimension.DimensionBuilder<B extends Dimension.DimensionBuilder<B>>, Dimension.DimensionMutator, Dimension.DimensionProperty, Dimension.DimensionPropertyBuilder
-
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
setImageFile(java.io.File aImageFile)
Sets the URL for retrieving the image data for the image property.void
setImageInputStream(java.io.InputStream aImageStream)
Sets theInputStream
for retrieving the image data for the image property.void
setImageURL(java.net.URL aImageUrl)
Sets theURL
for retrieving the image data for the image property.default PixmapImageBuilder<PX>
withImageFile(java.io.File aImageFile)
Sets theFile
for retrieving the image data for the image property.default PixmapImageBuilder<PX>
withImageInputStream(java.io.InputStream aImageStream)
Sets the input stream for retrieving the image data for the image property.default PixmapImageBuilder<PX>
withImageURL(java.net.URL aUrl)
Sets theURL
for retrieving the image data for the image property.-
Methods inherited from interface org.refcodes.graphical.BuildPixmap
toPixmap
-
Methods inherited from interface org.refcodes.graphical.Dimension
-
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.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.WidthAccessor
getWidth
-
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthBuilder
withWidth
-
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthMutator
setWidth
-
-
-
-
Method Detail
-
setImageInputStream
void setImageInputStream(java.io.InputStream aImageStream)
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
default PixmapImageBuilder<PX> withImageInputStream(java.io.InputStream aImageStream)
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
void setImageURL(java.net.URL aImageUrl)
Sets theURL
for retrieving the image data for the image property.- Parameters:
aImageUrl
- The image which'sURL
is to be stored by the imageURL
property.
-
withImageURL
default PixmapImageBuilder<PX> withImageURL(java.net.URL aUrl)
Sets theURL
for retrieving the image data for the image property.- Parameters:
aUrl
- the URL- Returns:
- The builder for applying multiple build operations.
-
setImageFile
default void setImageFile(java.io.File aImageFile) throws java.io.FileNotFoundException
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:
java.io.FileNotFoundException
- in case the file was not found.
-
withImageFile
default PixmapImageBuilder<PX> withImageFile(java.io.File aImageFile) throws java.io.FileNotFoundException
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:
java.io.FileNotFoundException
- in case the file was not found.
-
-