Class FloatMap
- javafx.scene.effect.FloatMap
public class FloatMap extends Object
DisplacementMap.Since:
JavaFX 2.0
-
Property Summary
All MethodsInstance MethodsConcrete Methods Type Property and Description IntegerPropertyheightThe height of the map, in pixels.IntegerPropertywidthThe width of the map, in pixels.
-
Constructor Summary
Constructors Constructor and Description FloatMap()Creates a new instance of FloatMap with default parameters.FloatMap(int width, int height)Creates a new instance of FloatMap with the specified width and height.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description intgetHeight()Gets the value of the property height.intgetWidth()Gets the value of the property width.IntegerPropertyheightProperty()The height of the map, in pixels.voidsetHeight(int value)Sets the value of the property height.voidsetSample(int x, int y, int band, float s)Sets the sample for a specific band at the given (x,y) location.voidsetSamples(int x, int y, float s0)Sets the sample for the first band at the given (x,y) location.voidsetSamples(int x, int y, float s0, float s1)Sets the sample for the first two bands at the given (x,y) location.voidsetSamples(int x, int y, float s0, float s1, float s2)Sets the sample for the first three bands at the given (x,y) location.voidsetSamples(int x, int y, float s0, float s1, float s2, float s3)Sets the sample for each of the four bands at the given (x,y) location.voidsetWidth(int value)Sets the value of the property width.IntegerPropertywidthProperty()The width of the map, in pixels.
-
Property Detail
-
width
public final IntegerProperty widthProperty
The width of the map, in pixels.Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
See Also:
-
height
public final IntegerProperty heightProperty
The height of the map, in pixels.Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
See Also:
-
-
Constructor Detail
-
FloatMap
public FloatMap()
Creates a new instance of FloatMap with default parameters.
-
FloatMap
public FloatMap(int width, int height)Creates a new instance of FloatMap with the specified width and height.Parameters:
width- the width of the map, in pixelsSince:
JavaFX 2.1
-
-
Method Detail
-
setWidth
public final void setWidth(int value)
Sets the value of the property width.Property description:
The width of the map, in pixels.
Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
-
getWidth
public final int getWidth()
Gets the value of the property width.Property description:
The width of the map, in pixels.
Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
-
widthProperty
public final IntegerProperty widthProperty()
The width of the map, in pixels.Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
See Also:
-
setHeight
public final void setHeight(int value)
Sets the value of the property height.Property description:
The height of the map, in pixels.
Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
-
getHeight
public final int getHeight()
Gets the value of the property height.Property description:
The height of the map, in pixels.
Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
-
heightProperty
public final IntegerProperty heightProperty()
The height of the map, in pixels.Min: 1 Max: 4096 Default: 1 Identity: n/aDefault value:
1
See Also:
-
setSample
public void setSample(int x, int y, int band, float s)Sets the sample for a specific band at the given (x,y) location.Parameters:
x- the x location
-
setSamples
public void setSamples(int x, int y, float s0)Sets the sample for the first band at the given (x,y) location.Parameters:
x- the x location
-
setSamples
public void setSamples(int x, int y, float s0, float s1)Sets the sample for the first two bands at the given (x,y) location.Parameters:
x- the x location
-
setSamples
public void setSamples(int x, int y, float s0, float s1, float s2)Sets the sample for the first three bands at the given (x,y) location.Parameters:
x- the x location
-
setSamples
public void setSamples(int x, int y, float s0, float s1, float s2, float s3)Sets the sample for each of the four bands at the given (x,y) location.Parameters:
x- the x location
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.