java.lang.Object
javafx.scene.effect.Effect
javafx.scene.effect.ColorInput
An effect that renders a rectangular region that is filled ("flooded")
with the given
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.- Since:
- JavaFX 2.0
-
Property Summary
TypePropertyDescriptionfinal DoubleProperty
Sets the height of the region to be flooded, relative to the local coordinate space of the contentNode
.final ObjectProperty<Paint>
ThePaint
used to flood the region.final DoubleProperty
Sets the width of the region to be flooded, relative to the local coordinate space of the contentNode
.final DoubleProperty
Sets the x location of the region to be flooded, relative to the local coordinate space of the contentNode
.final DoubleProperty
Sets the y location of the region to be flooded, relative to the local coordinate space of the contentNode
. -
Constructor Summary
ConstructorDescriptionCreates 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. -
Method Summary
Modifier and TypeMethodDescriptionfinal double
Gets the value of the property height.final Paint
getPaint()
Gets the value of the property paint.final double
getWidth()
Gets the value of the property width.final double
getX()
Gets the value of the property x.final double
getY()
Gets the value of the property y.final DoubleProperty
Sets the height of the region to be flooded, relative to the local coordinate space of the contentNode
.final ObjectProperty<Paint>
ThePaint
used to flood the region.final void
setHeight
(double value) Sets the value of the property height.final void
Sets the value of the property paint.final void
setWidth
(double value) Sets the value of the property width.final void
setX
(double value) Sets the value of the property x.final void
setY
(double value) Sets the value of the property y.final DoubleProperty
Sets the width of the region to be flooded, relative to the local coordinate space of the contentNode
.final DoubleProperty
Sets the x location of the region to be flooded, relative to the local coordinate space of the contentNode
.final DoubleProperty
Sets the y location of the region to be flooded, relative to the local coordinate space of the contentNode
.
-
Property Details
-
paint
ThePaint
used to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a
- Default value:
- RED
- See Also:
-
x
Sets the x location of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
y
Sets the y location of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
width
Sets the width of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
height
Sets the height of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
-
Constructor Details
-
ColorInput
public ColorInput()Creates a new instance of ColorInput with default parameters. -
ColorInput
Creates a new instance of ColorInput with the specified x, y, width, height, and paint.- Parameters:
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
- thePaint
used to flood the region- Since:
- JavaFX 2.1
-
-
Method Details
-
setPaint
Sets the value of the property paint.- Property description:
- The
Paint
used to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a
- Default value:
- RED
-
getPaint
Gets the value of the property paint.- Property description:
- The
Paint
used to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a
- Default value:
- RED
-
paintProperty
ThePaint
used to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a
- Default value:
- RED
- See Also:
-
setX
public final void setX(double value) Sets the value of the property x.- Property description:
- Sets the x location of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
getX
public final double getX()Gets the value of the property x.- Property description:
- Sets the x location of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
xProperty
Sets the x location of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
setY
public final void setY(double value) Sets the value of the property y.- Property description:
- Sets the y location of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
getY
public final double getY()Gets the value of the property y.- Property description:
- Sets the y location of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
yProperty
Sets the y location of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
setWidth
public final void setWidth(double value) Sets the value of the property width.- Property description:
- Sets the width of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
getWidth
public final double getWidth()Gets the value of the property width.- Property description:
- Sets the width of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
widthProperty
Sets the width of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
setHeight
public final void setHeight(double value) Sets the value of the property height.- Property description:
- Sets the height of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
getHeight
public final double getHeight()Gets the value of the property height.- Property description:
- Sets the height of the region to be flooded, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
-
heightProperty
Sets the height of the region to be flooded, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-