class HW1Model
extends java.lang.Object
| Constructor | Description |
|---|---|
HW1Model() |
Creates an instance of
HW1Model class using default parameters |
HW1Model(double r,
double g,
double b) |
Creates an instance of
HW1Model class. |
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.property.DoubleProperty |
blueProperty() |
Gets the blue property.
|
javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> |
colorProperty() |
Gets the color of the light property.
|
double |
getBlue() |
Gets the blue component.
|
javafx.scene.paint.Color |
getColor() |
Gets the color of the light.
|
double |
getGreen() |
Gets the green component.
|
double |
getRed() |
Gets the red component.
|
javafx.beans.property.DoubleProperty |
greenProperty() |
Gets the green property.
|
javafx.beans.property.DoubleProperty |
redProperty() |
Gets the red property.
|
void |
setBlue(double value) |
Sets the blue component.
|
void |
setColor(javafx.scene.paint.Color value) |
Sets the color of the light.
|
void |
setGreen(double value) |
Sets the green component.
|
void |
setRed(double value) |
Sets the red component.
|
public HW1Model()
HW1Model class using default parameterspublic HW1Model(double r,
double g,
double b)
HW1Model class.r - The red component.g - The green component.b - The blue component.public final double getRed()
public final void setRed(double value)
value - The red component.public javafx.beans.property.DoubleProperty redProperty()
public final double getGreen()
public final void setGreen(double value)
value - The green component.public javafx.beans.property.DoubleProperty greenProperty()
public final double getBlue()
public final void setBlue(double value)
value - The blue component.public javafx.beans.property.DoubleProperty blueProperty()
public final javafx.scene.paint.Color getColor()
public final void setColor(javafx.scene.paint.Color value)
value - The color.public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> colorProperty()