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.Type | Property and Description |
---|---|
DoubleProperty |
height
Sets the height of the region to be flooded, relative to the
local coordinate space of the content
Node . |
ObjectProperty<Paint> |
paint
The
Paint used to flood the region. |
DoubleProperty |
width
Sets the width of the region to be flooded, relative to the
local coordinate space of the content
Node . |
DoubleProperty |
x
Sets the x location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
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()
Gets the value of the property height.
|
Paint |
getPaint()
Gets the value of the property paint.
|
double |
getWidth()
Gets the value of the property width.
|
double |
getX()
Gets the value of the property x.
|
double |
getY()
Gets the value of the property y.
|
DoubleProperty |
heightProperty()
Sets the height of the region to be flooded, relative to the
local coordinate space of the content
Node . |
ObjectProperty<Paint> |
paintProperty()
The
Paint used to flood the region. |
void |
setHeight(double value)
Sets the value of the property height.
|
void |
setPaint(Paint value)
Sets the value of the property paint.
|
void |
setWidth(double value)
Sets the value of the property width.
|
void |
setX(double value)
Sets the value of the property x.
|
void |
setY(double value)
Sets the value of the property y.
|
DoubleProperty |
widthProperty()
Sets the width of the region to be flooded, relative to the
local coordinate space of the content
Node . |
DoubleProperty |
xProperty()
Sets the x location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
DoubleProperty |
yProperty()
Sets the y location of the region to be flooded, relative to the
local coordinate space of the content
Node . |
public final ObjectProperty<Paint> paintProperty
Paint
used to flood the region.
Min: n/a Max: n/a Default: Color.RED Identity: n/a
getPaint()
,
setPaint(Paint)
public final DoubleProperty xProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getX()
,
setX(double)
public final DoubleProperty yProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getY()
,
setY(double)
public final DoubleProperty widthProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getWidth()
,
setWidth(double)
public final DoubleProperty heightProperty
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getHeight()
,
setHeight(double)
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)
Paint
used to flood the region.
Min: n/a Max: n/a Default: Color.RED Identity: n/a
public final Paint getPaint()
Paint
used to flood the region.
Min: n/a Max: n/a Default: Color.RED Identity: n/a
public final ObjectProperty<Paint> paintProperty()
Paint
used to flood the region.
Min: n/a Max: n/a Default: Color.RED Identity: n/a
getPaint()
,
setPaint(Paint)
public final void setX(double value)
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final double getX()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final DoubleProperty xProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getX()
,
setX(double)
public final void setY(double value)
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final double getY()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final DoubleProperty yProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getY()
,
setY(double)
public final void setWidth(double value)
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final double getWidth()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final DoubleProperty widthProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getWidth()
,
setWidth(double)
public final void setHeight(double value)
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final double getHeight()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final DoubleProperty heightProperty()
Node
.
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getHeight()
,
setHeight(double)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.