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.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 ObjectProperty<Paint> |
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 |
---|---|
double |
getHeight() |
Paint |
getPaint() |
private Paint |
getPaintInternal() |
double |
getWidth() |
double |
getX() |
double |
getY() |
DoubleProperty |
heightProperty() |
(package private) boolean |
impl_checkChainContains(Effect e) |
Effect |
impl_copy()
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
(package private) Flood |
impl_createImpl() |
BaseBounds |
impl_getBounds(BaseBounds bounds,
BaseTransform tx,
Node node,
BoundsAccessor boundsAccessor)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
(package private) void |
impl_update() |
ObjectProperty<Paint> |
paintProperty() |
void |
setHeight(double value) |
void |
setPaint(Paint value) |
void |
setWidth(double value) |
void |
setX(double value) |
void |
setY(double value) |
DoubleProperty |
widthProperty() |
DoubleProperty |
xProperty() |
DoubleProperty |
yProperty() |
effectBoundsChanged, getInputBounds, getKernelSize, getShadowBounds, impl_containsCycles, impl_effectDirtyProperty, impl_getImpl, impl_isEffectDirty, impl_sync, markDirty, transformBounds
private ObjectProperty<Paint> 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 regionFlood impl_createImpl()
impl_createImpl
in class Effect
public final void setPaint(Paint value)
public final Paint getPaint()
public final ObjectProperty<Paint> paintProperty()
public final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
public final void setWidth(double value)
public final double getWidth()
public final DoubleProperty widthProperty()
public final void setHeight(double value)
public final double getHeight()
public final DoubleProperty heightProperty()
private Paint getPaintInternal()
void impl_update()
impl_update
in class Effect
boolean impl_checkChainContains(Effect e)
impl_checkChainContains
in class Effect
@Deprecated public BaseBounds impl_getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect
impl_getBounds
in class Effect