Package org.refcodes.graphical
Class RgbPixmapImageBuilderImpl
- java.lang.Object
-
- org.refcodes.graphical.RgbPixmapImageBuilderImpl
-
- All Implemented Interfaces:
BuildPixmap<RgbPixel>
,Dimension
,Dimension.DimensionBuilder<RgbPixel>
,Dimension.DimensionMutator
,Dimension.DimensionProperty
,HeightAccessor
,HeightAccessor.HeightBuilder<RgbPixel>
,HeightAccessor.HeightMutator
,HeightAccessor.HeightProperty
,PixmapImageBuilder<RgbPixel>
,RgbPixmapImageBuilder
,WidthAccessor
,WidthAccessor.WidthBuilder<RgbPixel>
,WidthAccessor.WidthMutator
,WidthAccessor.WidthProperty
public class RgbPixmapImageBuilderImpl extends java.lang.Object implements RgbPixmapImageBuilder
The Class RgbPixmapImageBuilderImpl.- Author:
- steiner
-
-
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
-
-
Constructor Summary
Constructors Constructor Description RgbPixmapImageBuilderImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
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(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.void
setWidth(int aWidth)
Sets the width for the width property.RgbPixmap
toPixmap()
To pixmap.RgbPixmap
toPixmap(java.io.InputStream aImageStream)
To pixmap.RgbPixmap
toPixmap(java.net.URL aImageUrl)
To pixmap.protected static RgbPixmap
toPixmap(javafx.scene.image.Image aImage)
To pixmap.RgbPixmapImageBuilder
withDimension(int aWidth, int aHeight)
With dimension.RgbPixmapImageBuilder
withDimension(Dimension aDimension)
With dimension.RgbPixmapImageBuilder
withHeight(int aHeight)
Sets the height for the height property.RgbPixmapImageBuilder
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.PixmapImageBuilder
setImageFile
-
Methods inherited from interface org.refcodes.graphical.RgbPixmapImageBuilder
toPixmap, withImageFile, withImageInputStream, withImageURL
-
-
-
-
Method Detail
-
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
public void setDimension(Dimension aDimension)
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
public RgbPixmapImageBuilder withDimension(int aWidth, int aHeight)
With dimension.- Specified by:
withDimension
in interfaceDimension.DimensionBuilder<RgbPixel>
- Specified by:
withDimension
in interfaceRgbPixmapImageBuilder
- Parameters:
aWidth
- the widthaHeight
- the height- Returns:
- the b
-
withDimension
public RgbPixmapImageBuilder withDimension(Dimension aDimension)
With dimension.- Specified by:
withDimension
in interfaceDimension.DimensionBuilder<RgbPixel>
- Specified by:
withDimension
in interfaceRgbPixmapImageBuilder
- Parameters:
aDimension
- the dimension- Returns:
- the b
-
withWidth
public RgbPixmapImageBuilder withWidth(int aWidth)
Sets the width for the width property.- Specified by:
withWidth
in interfaceRgbPixmapImageBuilder
- Specified by:
withWidth
in interfaceWidthAccessor.WidthBuilder<RgbPixel>
- Parameters:
aWidth
- The width to be stored by the width property.- Returns:
- The builder for applying multiple build operations.
-
withHeight
public RgbPixmapImageBuilder withHeight(int aHeight)
Sets the height for the height property.- Specified by:
withHeight
in interfaceHeightAccessor.HeightBuilder<RgbPixel>
- Specified by:
withHeight
in interfaceRgbPixmapImageBuilder
- Parameters:
aHeight
- The height to be stored by the height property.- Returns:
- The builder for applying multiple build operations.
-
setImageInputStream
public void setImageInputStream(java.io.InputStream aImageStream)
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
public void setImageURL(java.net.URL aImageUrl)
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
public RgbPixmap toPixmap()
To pixmap.- Specified by:
toPixmap
in interfaceBuildPixmap<RgbPixel>
- Specified by:
toPixmap
in interfaceRgbPixmapImageBuilder
- Returns:
- the pixmap
-
toPixmap
public RgbPixmap toPixmap(java.net.URL aImageUrl)
To pixmap.- Specified by:
toPixmap
in interfaceRgbPixmapImageBuilder
- Parameters:
aImageUrl
- the image url- Returns:
- the rgb pixmap
-
toPixmap
public RgbPixmap toPixmap(java.io.InputStream aImageStream)
To pixmap.- Specified by:
toPixmap
in interfaceRgbPixmapImageBuilder
- Parameters:
aImageStream
- the image stream- Returns:
- the rgb pixmap
-
toPixmap
protected static RgbPixmap toPixmap(javafx.scene.image.Image aImage)
To pixmap.- Parameters:
aImage
- the image- Returns:
- the rgb pixmap
-
-