.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.Drawing Text ==== .. type:: public class Text Text. Created using :meth:`addText(String, SpaceCenter.ReferenceFrame, org.javatuples.Triplet, org.javatuples.Quartet, boolean)`. .. method:: org.javatuples.Triplet getPosition() .. method:: void setPosition(org.javatuples.Triplet value) Position of the text. :Game Scenes: Flight .. method:: org.javatuples.Quartet getRotation() .. method:: void setRotation(org.javatuples.Quartet value) Rotation of the text as a quaternion. :Game Scenes: Flight .. method:: SpaceCenter.ReferenceFrame getReferenceFrame() .. method:: void setReferenceFrame(SpaceCenter.ReferenceFrame value) Reference frame for the positions of the object. :Game Scenes: Flight .. method:: boolean getVisible() .. method:: void setVisible(boolean value) Whether the object is visible. :Game Scenes: Flight .. method:: void remove() Remove the object. :Game Scenes: Flight .. method:: String getContent() .. method:: void setContent(String value) The text string :Game Scenes: Flight .. method:: String getFont() .. method:: void setFont(String value) Name of the font :Game Scenes: Flight .. method:: static java.util.List availableFonts(Connection connection) A list of all available fonts. :Game Scenes: Flight .. method:: int getSize() .. method:: void setSize(int value) Font size. :Game Scenes: Flight .. method:: float getCharacterSize() .. method:: void setCharacterSize(float value) Character size. :Game Scenes: Flight .. method:: UI.FontStyle getStyle() .. method:: void setStyle(UI.FontStyle value) Font style. :Game Scenes: Flight .. method:: org.javatuples.Triplet getColor() .. method:: void setColor(org.javatuples.Triplet value) Set the color :Game Scenes: Flight .. method:: String getMaterial() .. method:: void setMaterial(String value) Material used to render the object. Creates the material from a shader with the given name. :Game Scenes: Flight .. method:: UI.TextAlignment getAlignment() .. method:: void setAlignment(UI.TextAlignment value) Alignment. :Game Scenes: Flight .. method:: float getLineSpacing() .. method:: void setLineSpacing(float value) Line spacing. :Game Scenes: Flight .. method:: UI.TextAnchor getAnchor() .. method:: void setAnchor(UI.TextAnchor value) Anchor. :Game Scenes: Flight