java.lang.Object
javafx.scene.effect.Effect
javafx.scene.effect.ColorInput
public class ColorInput extends Effect
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 SummaryProperties Type Property Description DoublePropertyheightSets the height of the region to be flooded, relative to the local coordinate space of the contentNode.ObjectProperty<Paint>paintThePaintused to flood the region.DoublePropertywidthSets the width of the region to be flooded, relative to the local coordinate space of the contentNode.DoublePropertyxSets the x location of the region to be flooded, relative to the local coordinate space of the contentNode.DoublePropertyySets the y location of the region to be flooded, relative to the local coordinate space of the contentNode.
- 
Constructor SummaryConstructors Constructor 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.
- 
Method SummaryModifier and Type Method Description doublegetHeight()Gets the value of the property height.PaintgetPaint()Gets the value of the property paint.doublegetWidth()Gets the value of the property width.doublegetX()Gets the value of the property x.doublegetY()Gets the value of the property y.DoublePropertyheightProperty()Sets the height of the region to be flooded, relative to the local coordinate space of the contentNode.ObjectProperty<Paint>paintProperty()ThePaintused to flood the region.voidsetHeight(double value)Sets the value of the property height.voidsetPaint(Paint value)Sets the value of the property paint.voidsetWidth(double value)Sets the value of the property width.voidsetX(double value)Sets the value of the property x.voidsetY(double value)Sets the value of the property y.DoublePropertywidthProperty()Sets the width of the region to be flooded, relative to the local coordinate space of the contentNode.DoublePropertyxProperty()Sets the x location of the region to be flooded, relative to the local coordinate space of the contentNode.DoublePropertyyProperty()Sets the y location of the region to be flooded, relative to the local coordinate space of the contentNode.
- 
Property Details- 
paintThePaintused to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a- Default value:
- RED
- See Also:
- getPaint(),- setPaint(Paint)
 
- 
xSets 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:
- getX(),- setX(double)
 
- 
ySets 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:
- getY(),- setY(double)
 
- 
widthSets 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:
- getWidth(),- setWidth(double)
 
- 
heightSets 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:
- getHeight(),- setHeight(double)
 
 
- 
- 
Constructor Details- 
ColorInputpublic ColorInput()Creates a new instance of ColorInput with default parameters.
- 
ColorInputCreates a new instance of ColorInput with the specified x, y, width, height, and paint.- Parameters:
- x- the x location of the region to be flooded
- y- the y location of the region to be flooded
- width- the width of the region to be flooded
- height- the height of the region to be flooded
- paint- the- Paintused to flood the region
- Since:
- JavaFX 2.1
 
 
- 
- 
Method Details- 
setPaintSets the value of the property paint.- Property description:
- The Paintused to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a
- Default value:
- RED
 
- 
getPaintGets the value of the property paint.- Property description:
- The Paintused to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a
- Default value:
- RED
 
- 
paintPropertyThePaintused to flood the region.Min: n/a Max: n/a Default: Color.RED Identity: n/a- Default value:
- RED
- See Also:
- getPaint(),- setPaint(Paint)
 
- 
setXpublic 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
 
- 
getXpublic 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
 
- 
xPropertySets 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:
- getX(),- setX(double)
 
- 
setYpublic 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
 
- 
getYpublic 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
 
- 
yPropertySets 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:
- getY(),- setY(double)
 
- 
setWidthpublic 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
 
- 
getWidthpublic 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
 
- 
widthPropertySets 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:
- getWidth(),- setWidth(double)
 
- 
setHeightpublic 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
 
- 
getHeightpublic 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
 
- 
heightPropertySets 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:
- getHeight(),- setHeight(double)
 
 
-