Java Reference
In-Depth Information
public double getBlueLightY() {
return blueLightY.get();
}
public DoubleProperty blueLightYProperty() {
return blueLightY;
}
public void setBlueLightY(double blueLightY) {
this.blueLightY.set(blueLightY);
}
public double getBlueLightZ() {
return blueLightZ.get();
}
public DoubleProperty blueLightZProperty() {
return blueLightZ;
}
public void setBlueLightZ(double blueLightZ) {
this.blueLightZ.set(blueLightZ);
}
}
private static class View {
public Scene scene;
public Box box;
public PerspectiveCamera camera;
public PointLight redLight;
public PointLight blueLight;
private final Rotate rotateX;
private final Rotate rotateY;
private final Rotate rotateZ;
private final Translate translateZ;
private View(Model model) {
box = new Box(10, 10, 10);
camera = new PerspectiveCamera(true);
rotateX = new Rotate(-20, Rotate.X_AXIS);
rotateY = new Rotate(-20, Rotate.Y_AXIS);
rotateZ = new Rotate(-20, Rotate.Z_AXIS);
translateZ = new Translate(0, 0, -50);
camera.getTransforms().addAll(rotateX, rotateY, rotateZ, translateZ);
Search WWH ::




Custom Search