public class RgbPixmapImageBuilderImpl extends Object implements RgbPixmapImageBuilder
Dimension.DimensionBuilder<B extends Dimension.DimensionBuilder<B>>, Dimension.DimensionMutator, Dimension.DimensionProperty, Dimension.DimensionPropertyBuilder
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
HeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightProperty
Constructor and Description |
---|
RgbPixmapImageBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Retrieves the height from the height property.
|
int |
getWidth()
Retrieves the width from the width property.
|
void |
setDimension(Dimension aDimension)
Sets the dimension.
|
void |
setDimension(int aWidth,
int aHeight)
Sets the dimension.
|
void |
setHeight(int aHeight)
Sets the height for the height property.
|
void |
setImageInputStream(InputStream aImageStream)
Sets the
InputStream for retrieving the image data for the image
property. |
void |
setImageURL(URL aImageUrl)
Sets the
URL for retrieving the image data for the image
property. |
void |
setWidth(int aWidth)
Sets the width for the width property.
|
RgbPixmap |
toPixmap()
To pixmap.
|
protected static RgbPixmap |
toPixmap(javafx.scene.image.Image aImage)
To pixmap.
|
RgbPixmap |
toPixmap(InputStream aImageStream)
To pixmap.
|
RgbPixmap |
toPixmap(URL aImageUrl)
To pixmap.
|
RgbPixmapImageBuilder |
withDimension(Dimension aDimension)
With dimension.
|
RgbPixmapImageBuilder |
withDimension(int aWidth,
int aHeight)
With dimension.
|
RgbPixmapImageBuilder |
withHeight(int aHeight)
Sets the height for the height property.
|
RgbPixmapImageBuilder |
withWidth(int aWidth)
Sets the width for the width property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toPixmap, withImageFile, withImageInputStream, withImageURL
setImageFile
public int getWidth()
getWidth
in interface WidthAccessor
public int getHeight()
getHeight
in interface HeightAccessor
public void setDimension(int aWidth, int aHeight)
setDimension
in interface Dimension.DimensionMutator
aWidth
- the widthaHeight
- the heightpublic void setDimension(Dimension aDimension)
setDimension
in interface Dimension.DimensionMutator
aDimension
- the new dimensionpublic void setWidth(int aWidth)
setWidth
in interface WidthAccessor.WidthMutator
aWidth
- The width to be stored by the width property.public void setHeight(int aHeight)
setHeight
in interface HeightAccessor.HeightMutator
aHeight
- The height to be stored by the height property.public RgbPixmapImageBuilder withDimension(int aWidth, int aHeight)
withDimension
in interface Dimension.DimensionBuilder<PixmapImageBuilder<RgbPixel>>
withDimension
in interface RgbPixmapImageBuilder
aWidth
- the widthaHeight
- the heightpublic RgbPixmapImageBuilder withDimension(Dimension aDimension)
withDimension
in interface Dimension.DimensionBuilder<PixmapImageBuilder<RgbPixel>>
withDimension
in interface RgbPixmapImageBuilder
aDimension
- the dimensionpublic RgbPixmapImageBuilder withWidth(int aWidth)
withWidth
in interface RgbPixmapImageBuilder
withWidth
in interface WidthAccessor.WidthBuilder<PixmapImageBuilder<RgbPixel>>
aWidth
- The width to be stored by the width property.public RgbPixmapImageBuilder withHeight(int aHeight)
withHeight
in interface HeightAccessor.HeightBuilder<PixmapImageBuilder<RgbPixel>>
withHeight
in interface RgbPixmapImageBuilder
aHeight
- The height to be stored by the height property.public void setImageInputStream(InputStream aImageStream)
InputStream
for retrieving the image data for the image
property.setImageInputStream
in interface PixmapImageBuilder<RgbPixel>
aImageStream
- The image which's InputStream
is to be stored
by the image InputStream
property.public void setImageURL(URL aImageUrl)
URL
for retrieving the image data for the image
property.setImageURL
in interface PixmapImageBuilder<RgbPixel>
aImageUrl
- The image which's URL
is to be stored by the
image URL
property.public RgbPixmap toPixmap()
toPixmap
in interface BuildPixmap<RgbPixel>
toPixmap
in interface RgbPixmapImageBuilder
public RgbPixmap toPixmap(URL aImageUrl)
toPixmap
in interface RgbPixmapImageBuilder
aImageUrl
- the image urlpublic RgbPixmap toPixmap(InputStream aImageStream)
toPixmap
in interface RgbPixmapImageBuilder
aImageStream
- the image streamprotected static RgbPixmap toPixmap(javafx.scene.image.Image aImage)
aImage
- the imageCopyright © 2018. All rights reserved.