public class FloatMap
extends java.lang.Object
DisplacementMap
.Type | Property and Description |
---|---|
(package private) BooleanProperty |
effectDirty |
IntegerProperty |
height
The height of the map, in pixels.
|
IntegerProperty |
width
The width of the map, in pixels.
|
Modifier and Type | Field and Description |
---|---|
private float[] |
buf |
private BooleanProperty |
effectDirty |
private IntegerProperty |
height
The height of the map, in pixels.
|
private com.sun.scenario.effect.FloatMap |
map |
private boolean |
mapBufferDirty |
private IntegerProperty |
width
The width of the map, in pixels.
|
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.
|
Modifier and Type | Method and Description |
---|---|
private void |
clearDirty() |
(package private) FloatMap |
copy() |
(package private) BooleanProperty |
effectDirtyProperty() |
int |
getHeight()
Gets the value of the property height.
|
(package private) com.sun.scenario.effect.FloatMap |
getImpl() |
int |
getWidth()
Gets the value of the property width.
|
IntegerProperty |
heightProperty()
The height of the map, in pixels.
|
(package private) boolean |
isEffectDirty() |
private void |
markDirty() |
private void |
setEffectDirty(boolean value) |
void |
setHeight(int value)
Sets the value of the property height.
|
void |
setSample(int x,
int y,
int band,
float s)
Sets the sample for a specific band at the given (x,y) location.
|
void |
setSamples(int x,
int y,
float s0)
Sets the sample for the first band at the given (x,y) location.
|
void |
setSamples(int x,
int y,
float s0,
float s1)
Sets the sample for the first two bands at the given (x,y) location.
|
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.
|
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.
|
void |
setWidth(int value)
Sets the value of the property width.
|
(package private) void |
sync() |
private void |
update() |
private void |
updateBuffer() |
IntegerProperty |
widthProperty()
The width of the map, in pixels.
|
final BooleanProperty effectDirtyProperty
public final IntegerProperty widthProperty
Min: 1 Max: 4096 Default: 1 Identity: n/a
getWidth()
,
setWidth(int)
public final IntegerProperty heightProperty
Min: 1 Max: 4096 Default: 1 Identity: n/a
getHeight()
,
setHeight(int)
private com.sun.scenario.effect.FloatMap map
private float[] buf
private boolean mapBufferDirty
private BooleanProperty effectDirty
private IntegerProperty width
Min: 1 Max: 4096 Default: 1 Identity: n/a
private IntegerProperty height
Min: 1 Max: 4096 Default: 1 Identity: n/a
public FloatMap()
public FloatMap(int width, int height)
width
- the width of the map, in pixelsheight
- the height of the map, in pixelscom.sun.scenario.effect.FloatMap getImpl()
private void updateBuffer()
private void update()
void sync()
private void setEffectDirty(boolean value)
final BooleanProperty effectDirtyProperty()
boolean isEffectDirty()
private void markDirty()
private void clearDirty()
public final void setWidth(int value)
public final int getWidth()
public final IntegerProperty widthProperty()
Min: 1 Max: 4096 Default: 1 Identity: n/a
getWidth()
,
setWidth(int)
public final void setHeight(int value)
public final int getHeight()
public final IntegerProperty heightProperty()
Min: 1 Max: 4096 Default: 1 Identity: n/a
getHeight()
,
setHeight(int)
public void setSample(int x, int y, int band, float s)
x
- the x locationy
- the y locationband
- the band to set (must be 0, 1, 2, or 3)s
- the sample value to setpublic void setSamples(int x, int y, float s0)
x
- the x locationy
- the y locations0
- the sample value to set for the first bandpublic void setSamples(int x, int y, float s0, float s1)
x
- the x locationy
- the y locations0
- the sample value to set for the first bands1
- the sample value to set for the second bandpublic void setSamples(int x, int y, float s0, float s1, float s2)
x
- the x locationy
- the y locations0
- the sample value to set for the first bands1
- the sample value to set for the second bands2
- the sample value to set for the third bandpublic void setSamples(int x, int y, float s0, float s1, float s2, float s3)
x
- the x locationy
- the y locations0
- the sample value to set for the first bands1
- the sample value to set for the second bands2
- the sample value to set for the third bands3
- the sample value to set for the fourth bandFloatMap copy()