Text3D
class Text3D
3d texts in the scene.
public class Text3D extends Component
— Constructors (1) —
| Constructor | Description |
|---|---|
| Text3D() | Creates a new Text3D. |
— Methods (14) —
| Name | Description |
|---|---|
| Font getFont() | Returns the Text3D font. |
| void setFont(Font value) | Sets the Text3D font to be "font" argument. |
| String getText() | Returns the text contained in Text3D. |
| void setText(String text) | Sets the Text3D text to be "text" argument. |
| Color getColor() | Returns the color of Text3D. |
| void setColor(Color color) | Sets the Text3D color to be "color" argument. |
| float measureWidth(String text) | Calculates the width Text3D has in the scene to be "text" argument. |
| float measureWidth([String[]] lines) | Calculates the width Text3D has in the scene to be "lines" argument. |
| float measureHeight(String text) | Calculates the height Text3D has in the scene to be "text" argument. |
| float measureHeight([String[]] lines) | Calculates the height Text3D has in the scene to be "lines" argument. |
| float getScale() | Returns the Text3D scale. |
| void setScale(float scale) | Sets the Text3D scale to be "scale" argument. |
| int getResolution() | Returns the resolution of Text3d. |
| void setResolution(int resolution) | Sets the Text3D resolution to be "resolution" argument. |