Class TextElement

    • Field Detail

      • xCoord

        public final double xCoord
        The x coordinate where the text should be displayed.
      • yCoord

        public final double yCoord
        The y coordinate where the text should be displayed.
      • text

        public final String text
        The text to be displayed.
      • color

        public final Color color
        The color of the text.
    • Constructor Detail

      • TextElement

        public TextElement​(double xCoord,
                           double yCoord,
                           String text,
                           Color color)
        Constructs a new TextElement with the content text to be drawn at position (x,y) in the color color.
        Parameters:
        xCoord - x coordinate where the text should be displayed
        yCoord - y coordinate where the text should be displayed
        text - the text to be drawn
        color - the color of the text