Class FloatMapBuilder
java.lang.Object
io.github.sosuisen.jfxbuilder.graphics.FloatMapBuilder
The
FloatMapBuilder
class constructs instances of the FloatMap
class
and offers a fluent interface for creating and configuring it.
This class includes a static create
method that accepts the same arguments as the original FloatMap
constructor
and returns an instance of the FloatMapBuilder
.
You can use method chaining to call the builder methods for configuring the FloatMap
.
Finally, invoke the build
method to generate an instance of the FloatMap
class.
Note that intermediate builder methods are not evaluated until the build
method
is called, meaning they are evaluated lazily.
- Author:
- Hidekazu Kubota <hidekazu.kubota@gmail.com>
-
Method Summary
Modifier and TypeMethodDescriptionApplies a function to the FloatMap instance being constructed.build()
Builds and returns an instance of theFloatMap
class.static FloatMapBuilder
create()
Returns an instance of theFloatMapBuilder
.static FloatMapBuilder
create
(int width, int height) Accepts the constructor arguments ofFloatMap(int, int)
and returns an instance ofFloatMapBuilder
.height
(int value) A builder method that invokes thesetHeight
method on the instance being constructed.Applies a function to theheightProperty
of the instance being constructed.sample
(int x, int y, int band, float s) A builder method that invokes thesetSample
method on the instance being constructed.samples
(int x, int y, float s0) A builder method that invokes thesetSamples
method on the instance being constructed.samples
(int x, int y, float s0, float s1) A builder method that invokes thesetSamples
method on the instance being constructed.samples
(int x, int y, float s0, float s1, float s2) A builder method that invokes thesetSamples
method on the instance being constructed.samples
(int x, int y, float s0, float s1, float s2, float s3) A builder method that invokes thesetSamples
method on the instance being constructed.width
(int value) A builder method that invokes thesetWidth
method on the instance being constructed.Applies a function to thewidthProperty
of the instance being constructed.
-
Method Details
-
create
Returns an instance of theFloatMapBuilder
.- Returns:
- an instance of the
FloatMapBuilder
.
-
create
Accepts the constructor arguments ofFloatMap(int, int)
and returns an instance ofFloatMapBuilder
.- Returns:
- an instance of the
FloatMapBuilder
.
-
build
Builds and returns an instance of theFloatMap
class.Intermediate builder methods are not evaluated until the
build
method is called; in other words, they are evaluated lazily.- Returns:
- new instance of the
FloatMap
class
-
apply
Applies a function to the FloatMap instance being constructed. Most operations on the instance can be performed using this method.- Returns:
- builder instance
-
height
A builder method that invokes thesetHeight
method on the instance being constructed.- Returns:
- builder instance
-
sample
A builder method that invokes thesetSample
method on the instance being constructed.- Returns:
- builder instance
-
samples
A builder method that invokes thesetSamples
method on the instance being constructed.- Returns:
- builder instance
-
samples
A builder method that invokes thesetSamples
method on the instance being constructed.- Returns:
- builder instance
-
samples
A builder method that invokes thesetSamples
method on the instance being constructed.- Returns:
- builder instance
-
samples
A builder method that invokes thesetSamples
method on the instance being constructed.- Returns:
- builder instance
-
width
A builder method that invokes thesetWidth
method on the instance being constructed.- Returns:
- builder instance
-
heightPropertyApply
Applies a function to theheightProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
widthPropertyApply
Applies a function to thewidthProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-