类javafx.scene.shape.RectangleBuilder源码实例Demo

下面列出了怎么用javafx.scene.shape.RectangleBuilder的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: SmartCity-ParkingManagement   文件: Curbstone3D.java
public Curbstone(final double size, final Color color, final double shade) {
	getTransforms().addAll(rz, ry, rx);
	getChildren().addAll(
			RectangleBuilder.create() // back face
					.width(2 * size).height(size).fill(color.deriveColor(0.0, 1.0, 1 - 0.5 * shade, 1.0))
					.translateX(-0.5 * size).translateY(-0.5 * size).translateZ(0.5 * size).build(),
			RectangleBuilder.create() // bottom face
					.width(2 * size).height(size).fill(color.deriveColor(0.0, 1.0, 1 - 0.4 * shade, 1.0))
					.translateX(-0.5 * size).translateY(0).rotationAxis(Rotate.X_AXIS).rotate(90).build(),
			RectangleBuilder.create() // right face
					.width(size).height(size).fill(Color.GRAY.deriveColor(0.0, 1.0, 1 - 0.3 * shade, 1.0))
					.translateX(-1 * size).translateY(-0.5 * size).rotationAxis(Rotate.Y_AXIS).rotate(90)
					.build(),
			RectangleBuilder.create() // left face
					.width(size).height(size).fill(Color.GRAY.deriveColor(0.0, 1.0, 1 - 0.2 * shade, 1.0))
					.translateX(size).translateY(-0.5 * size).rotationAxis(Rotate.Y_AXIS).rotate(90).build(),
			RectangleBuilder.create() // top face
					.width(2 * size).height(size).fill(color.deriveColor(0.0, 1.0, 1 - 0.1 * shade, 1.0))
					.translateX(-0.5 * size).translateY(-1 * size).rotationAxis(Rotate.X_AXIS).rotate(90)
					.build(),
			RectangleBuilder.create() // top face
					.width(2 * size).height(size).fill(color).translateX(-0.5 * size).translateY(-0.5 * size)
					.translateZ(-0.5 * size).build());
}
 
源代码2 项目: marathonv5   文件: CubeSystemSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码3 项目: marathonv5   文件: AudioVisualizerSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx, s);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码4 项目: marathonv5   文件: XylophoneSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码5 项目: marathonv5   文件: CubeSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码6 项目: marathonv5   文件: CubeSystemSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码7 项目: marathonv5   文件: AudioVisualizerSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx, s);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码8 项目: marathonv5   文件: XylophoneSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码9 项目: marathonv5   文件: CubeSample.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码10 项目: netbeans   文件: Cube3D.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码11 项目: netbeans   文件: CubeSystem3D.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码12 项目: netbeans   文件: AudioVisualizer3D.java
public Cube(double size, Color color, double shade) {
    getTransforms().addAll(rz, ry, rx, s);
    getChildren().addAll(
        RectangleBuilder.create() // back face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.5*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(0.5*size)
            .build(),
        RectangleBuilder.create() // bottom face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.4*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(0)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // right face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.3*shade), 1.0))
            .translateX(-1*size)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // left face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.2*shade), 1.0))
            .translateX(0)
            .translateY(-0.5*size)
            .rotationAxis(Rotate.Y_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color.deriveColor(0.0, 1.0, (1 - 0.1*shade), 1.0))
            .translateX(-0.5*size)
            .translateY(-1*size)
            .rotationAxis(Rotate.X_AXIS)
            .rotate(90)
            .build(),
        RectangleBuilder.create() // top face
            .width(size).height(size)
            .fill(color)
            .translateX(-0.5*size)
            .translateY(-0.5*size)
            .translateZ(-0.5*size)
            .build()
    );
}
 
源代码13 项目: RadialFx   文件: DemoUtil.java
public void addGraphicControl(final String title,
    final ObjectProperty<Node> graphicProperty) {

final Node circle  = CircleBuilder.create().radius(4).fill(Color.ORANGE).build();
final Node square  = RectangleBuilder.create().width(8).height(8).build();
final Node text  = TextBuilder.create().text("test").build();

final ComboBox<Node> choices = new ComboBox<Node>(FXCollections.observableArrayList(circle, square, text));
choices.setCellFactory(new Callback<ListView<Node>, ListCell<Node>>() {
    @Override
    public ListCell<Node> call(final ListView<Node> param) {
	final ListCell<Node> cell = new ListCell<Node>() {
	    @Override
	    public void updateItem(final Node item, final boolean empty) {
		super.updateItem(item, empty);
		if (item != null) {
		    setText(item.getClass().getSimpleName());
		} else {
		    setText(null);
		}
	    }
	};
	return cell;
    }
});
choices.getSelectionModel().select(0);
graphicProperty.bind(choices.valueProperty());

final VBox box = new VBox();
final Text titleText = new Text(title);

titleText.textProperty().bind(new StringBinding() {
    {
	super.bind(choices.selectionModelProperty());
    }

    @Override
    protected String computeValue() {
	return title + " : "
		+ String.valueOf(choices.selectionModelProperty().get().getSelectedItem().getClass().getSimpleName());
    }

});
box.getChildren().addAll(titleText, choices);
getChildren().add(box);

   }
 
 类所在包
 同包方法