public class TLcdImageBuilder extends Object
ALcdBasicImage
or
ALcdMultilevelImage
instances.
Images can only be created from a single RenderedImage
or one or more
ALcdBasicImage
, not both.
You can find the other available builders on com.luciad.imaging
.Modifier and Type | Method and Description |
---|---|
TLcdImageBuilder |
bounds(ILcdBounds aBounds)
Set the image bounds.
|
ALcdBasicImage |
buildBasicImage()
Create a new
ALcdBasicImage with the currently defined properties. |
ALcdMultilevelImage |
buildMultilevelImage()
Create a new
ALcdMultilevelImage with the currently defined properties. |
TLcdImageBuilder |
image(ALcdBasicImage aBasicImage)
Add a source image.
|
TLcdImageBuilder |
image(RenderedImage aRenderedImage)
Add a source image.
|
TLcdImageBuilder |
image(RenderedImage aRenderedImage,
boolean aCacheTiles)
Add a source image.
|
TLcdImageBuilder |
imageReference(ILcdModelReference aImageReference)
Set the image reference.
|
TLcdImageBuilder |
images(List<ALcdBasicImage> aBasicImages)
Add a list of images, each representing one level.
|
TLcdImageBuilder |
levelRelationship(ELcdLevelRelationship aLevelRelationship)
Set the level relationship.
|
static TLcdImageBuilder |
newBuilder()
Create a new image builder.
|
TLcdImageBuilder |
samplingMode(ELcdImageSamplingMode aSamplingMode)
Set the image sampling mode.
|
TLcdImageBuilder |
semantics(List<? extends ALcdBandSemantics> aSemantics)
Set the image band semantics.
|
public static TLcdImageBuilder newBuilder()
public ALcdBasicImage buildBasicImage() throws IllegalStateException
ALcdBasicImage
with the currently defined properties.
To create a basic image, a number of conditions must be met:
RenderedImage
or a single
ALcdBasicImage
must be set.ALcdBasicImage
is set, other parameters
may be defined to override properties of the image.IllegalStateException
- when the above conditions are not metpublic ALcdMultilevelImage buildMultilevelImage() throws IllegalStateException
ALcdMultilevelImage
with the currently defined properties.
To create a multi-level image, a number of conditions must be met:
ALcdBasicImage
must be set or one or more RenderedImage
must be set.IllegalStateException
- when the above conditions are not metpublic TLcdImageBuilder image(RenderedImage aRenderedImage)
ALcdImage
's are immutable, so the specified RenderedImage
must also be immutable.aRenderedImage
- the source imagepublic TLcdImageBuilder image(RenderedImage aRenderedImage, boolean aCacheTiles)
ALcdImage
's are immutable, so the specified RenderedImage
must also be immutable.aRenderedImage
- the source imageaCacheTiles
- true
if the decoded tiles should be cached, this should typically be enabled if the
image does not perform caching internallypublic TLcdImageBuilder image(ALcdBasicImage aBasicImage)
aBasicImage
- the source image to addpublic TLcdImageBuilder images(List<ALcdBasicImage> aBasicImages)
aBasicImages
- the images to be addedpublic TLcdImageBuilder bounds(ILcdBounds aBounds)
aBounds
- the boundspublic TLcdImageBuilder imageReference(ILcdModelReference aImageReference)
aImageReference
- the image referencepublic TLcdImageBuilder semantics(List<? extends ALcdBandSemantics> aSemantics)
aSemantics
- the band semanticspublic TLcdImageBuilder samplingMode(ELcdImageSamplingMode aSamplingMode)
aSamplingMode
- the sampling modepublic TLcdImageBuilder levelRelationship(ELcdLevelRelationship aLevelRelationship)
aLevelRelationship
- the level relationship