public class ColorInput extends Effect
Paint
. This is equivalent to rendering a
filled rectangle into an image and using an ImageInput
effect,
except that it is more convenient and potentially much more efficient.Type | Property and Description |
---|---|
DoubleProperty |
height
Sets the height of the region to be flooded, relative to the
local coordinate space of the content
Node . |
<any> |
paint
The
Paint used to flood the region. |
DoubleProperty |
width
Sets the width of the region to be flooded, relative to the
local coordinate space of the content
Node . |
DoubleProperty |
x
Sets the x location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
DoubleProperty |
y
Sets the y location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
Effect.EffectInputChangeListener, Effect.EffectInputProperty
Modifier and Type | Field and Description |
---|---|
private DoubleProperty |
height
Sets the height of the region to be flooded, relative to the
local coordinate space of the content
Node . |
private <any> |
paint
The
Paint used to flood the region. |
private DoubleProperty |
width
Sets the width of the region to be flooded, relative to the
local coordinate space of the content
Node . |
private DoubleProperty |
x
Sets the x location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
private DoubleProperty |
y
Sets the y location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
Constructor and Description |
---|
ColorInput()
Creates a new instance of ColorInput with default parameters.
|
ColorInput(double x,
double y,
double width,
double height,
Paint paint)
Creates a new instance of ColorInput with the specified x, y, width,
height, and paint.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
checkChainContains(Effect e) |
(package private) Effect |
copy() |
(package private) com.sun.scenario.effect.Flood |
createPeer() |
(package private) BaseBounds |
getBounds(BaseBounds bounds,
BaseTransform tx,
Node node,
BoundsAccessor boundsAccessor)
Returns bounds of given node with applied effect.
|
double |
getHeight()
Gets the value of the property height.
|
Paint |
getPaint()
Gets the value of the property paint.
|
private Paint |
getPaintInternal() |
double |
getWidth()
Gets the value of the property width.
|
double |
getX()
Gets the value of the property x.
|
double |
getY()
Gets the value of the property y.
|
DoubleProperty |
heightProperty()
Sets the height of the region to be flooded, relative to the
local coordinate space of the content
Node . |
<any> |
paintProperty()
The
Paint used to flood the region. |
void |
setHeight(double value)
Sets the value of the property height.
|
void |
setPaint(Paint value)
Sets the value of the property paint.
|
void |
setWidth(double value)
Sets the value of the property width.
|
void |
setX(double value)
Sets the value of the property x.
|
void |
setY(double value)
Sets the value of the property y.
|
(package private) void |
update() |
DoubleProperty |
widthProperty()
Sets the width of the region to be flooded, relative to the
local coordinate space of the content
Node . |
DoubleProperty |
xProperty()
Sets the x location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
DoubleProperty |
yProperty()
Sets the y location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
containsCycles, effectBoundsChanged, getInputBounds, getKernelSize, getPeer, getShadowBounds, markDirty, sync, transformBounds
public final <any> paintProperty
Paint
used to flood the region.
Min: n/a Max: n/a Default: Color.RED Identity: n/a
getPaint()
,
setPaint(Paint)
public final DoubleProperty xProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getX()
,
setX(double)
public final DoubleProperty yProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getY()
,
setY(double)
public final DoubleProperty widthProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getWidth()
,
setWidth(double)
public final DoubleProperty heightProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getHeight()
,
setHeight(double)
private <any> paint
Paint
used to flood the region.
Min: n/a Max: n/a Default: Color.RED Identity: n/a
private DoubleProperty x
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
private DoubleProperty y
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
private DoubleProperty width
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
private DoubleProperty height
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public ColorInput()
public ColorInput(double x, double y, double width, double height, Paint paint)
x
- the x location of the region to be floodedy
- the y location of the region to be floodedwidth
- the width of the region to be floodedheight
- the height of the region to be floodedpaint
- the Paint
used to flood the regioncom.sun.scenario.effect.Flood createPeer()
createPeer
in class Effect
public final void setPaint(Paint value)
public final Paint getPaint()
public final <any> paintProperty()
Paint
used to flood the region.
Min: n/a Max: n/a Default: Color.RED Identity: n/a
getPaint()
,
setPaint(Paint)
public final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getX()
,
setX(double)
public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getY()
,
setY(double)
public final void setWidth(double value)
public final double getWidth()
public final DoubleProperty widthProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getWidth()
,
setWidth(double)
public final void setHeight(double value)
public final double getHeight()
public final DoubleProperty heightProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getHeight()
,
setHeight(double)
private Paint getPaintInternal()
boolean checkChainContains(Effect e)
checkChainContains
in class Effect
BaseBounds getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect