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
PropertiesTypePropertyDescriptionfinal DoublePropertySets the height of the region to be flooded, relative to the local coordinate space of the contentNode.final ObjectProperty<Paint>ThePaintused to flood the region.final DoublePropertySets the width of the region to be flooded, relative to the local coordinate space of the contentNode.final DoublePropertySets the x location of the region to be flooded, relative to the local coordinate space of the contentNode.final DoublePropertySets the y location of the region to be flooded, relative to the local coordinate space of the contentNode. -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 doubleGets the value of theheightproperty.final PaintgetPaint()Gets the value of thepaintproperty.final doublegetWidth()Gets the value of thewidthproperty.final doublegetX()Gets the value of thexproperty.final doublegetY()Gets the value of theyproperty.final DoublePropertySets the height of the region to be flooded, relative to the local coordinate space of the contentNode.final ObjectProperty<Paint>ThePaintused to flood the region.final voidsetHeight(double value) Sets the value of theheightproperty.final voidSets the value of thepaintproperty.final voidsetWidth(double value) Sets the value of thewidthproperty.final voidsetX(double value) Sets the value of thexproperty.final voidsetY(double value) Sets the value of theyproperty.final DoublePropertySets the width of the region to be flooded, relative to the local coordinate space of the contentNode.final DoublePropertySets the x location of the region to be flooded, relative to the local coordinate space of the contentNode.final DoublePropertySets the y location of the region to be flooded, relative to the local coordinate space of the contentNode.
-
Property Details
-
paint
ThePaintused 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- thePaintused to flood the region- Since:
- JavaFX 2.1
-
-
Method Details
-
setPaint
Sets the value of thepaintproperty.- Property description:
- The
Paintused to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a - Default value:
- RED
- Parameters:
value- the value for thepaintproperty- See Also:
-
getPaint
Gets the value of thepaintproperty.- Property description:
- The
Paintused to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a - Default value:
- RED
- Returns:
- the value of the
paintproperty - See Also:
-
paintProperty
ThePaintused to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a- Default value:
- RED
- Returns:
- the
paintproperty - See Also:
-
setX
public final void setX(double value) Sets the value of thexproperty.- 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
- Parameters:
value- the value for thexproperty- See Also:
-
getX
public final double getX()Gets the value of thexproperty.- 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
- Returns:
- the value of the
xproperty - See Also:
-
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
- Returns:
- the
xproperty - See Also:
-
setY
public final void setY(double value) Sets the value of theyproperty.- 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
- Parameters:
value- the value for theyproperty- See Also:
-
getY
public final double getY()Gets the value of theyproperty.- 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
- Returns:
- the value of the
yproperty - See Also:
-
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
- Returns:
- the
yproperty - See Also:
-
setWidth
public final void setWidth(double value) Sets the value of thewidthproperty.- 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
- Parameters:
value- the value for thewidthproperty- See Also:
-
getWidth
public final double getWidth()Gets the value of thewidthproperty.- 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
- Returns:
- the value of the
widthproperty - See Also:
-
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
- Returns:
- the
widthproperty - See Also:
-
setHeight
public final void setHeight(double value) Sets the value of theheightproperty.- 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
- Parameters:
value- the value for theheightproperty- See Also:
-
getHeight
public final double getHeight()Gets the value of theheightproperty.- 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
- Returns:
- the value of the
heightproperty - See Also:
-
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
- Returns:
- the
heightproperty - See Also:
-