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.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() |
double |
getWidth() |
double |
getX() |
double |
getY() |
DoubleProperty |
heightProperty() |
Effect |
impl_copy()
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
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
|
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() |
impl_effectDirtyProperty, impl_getImpl, impl_isEffectDirty, impl_sync
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 regionpublic 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()
@Deprecated public BaseBounds impl_getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect
impl_getBounds
in class Effect
@Deprecated public Effect impl_copy()
Copyright © 2020. All rights reserved.