Interface Overlay

    • Method Detail

      • drawLine

        @NotNull
        @NotNull OverlayDrawing<?> drawLine​(int x1,
                                            int y1,
                                            int x2,
                                            int y2,
                                            @NotNull
                                            @NotNull Color color)
        Draws line from point [x1, y1] to point [x2, y2] with color.
      • drawRectangle

        @NotNull
        @NotNull OverlayDrawing<?> drawRectangle​(int x,
                                                 int y,
                                                 int width,
                                                 int height,
                                                 @NotNull
                                                 @NotNull Color color)
        Draws rectangle with bottom left corner at [x, y] of specified width and height.
        Parameters:
        color - fill color.
      • drawRectangle

        @NotNull
        @NotNull OverlayDrawing<?> drawRectangle​(int x,
                                                 int y,
                                                 int width,
                                                 int height,
                                                 @NotNull
                                                 @NotNull Color color,
                                                 float borderWidth,
                                                 @NotNull
                                                 @NotNull Color borderColor)
        Draws rectangle with bottom left corner at [x, y] of specified width and height.
        Parameters:
        color - fill color.
        borderWidth - border line width
        borderColor - border line color
      • drawText

        @NotNull
        @NotNull OverlayDrawing<?> drawText​(@NotNull
                                            @NotNull java.lang.String text,
                                            int x,
                                            int y)
        Draws a text string at [x, y] with default font.
      • drawText

        @NotNull
        @NotNull OverlayDrawing<?> drawText​(@NotNull
                                            @NotNull java.lang.String text,
                                            int x,
                                            int y,
                                            @NotNull
                                            @NotNull Font font)
        Draws a text string at [x, y] with font.
      • drawText

        @NotNull
        @NotNull OverlayDrawing<?> drawText​(@NotNull
                                            @NotNull java.lang.String text,
                                            int x,
                                            int y,
                                            @NotNull
                                            @NotNull Font font,
                                            float rotation)
        Draws a text string at [x, y] with font, rotated at rotation degrees.
      • drawTextLayout

        @NotNull
        @NotNull OverlayDrawing<?> drawTextLayout​(@NotNull
                                                  @NotNull TextLayout textLayout,
                                                  int x,
                                                  int y,
                                                  float rotation)
        Draws a pre-rendered text layout at [x, y] rotated at rotation degrees.
      • drawAnimation

        @NotNull
        @NotNull OverlayDrawing<?> drawAnimation​(@NotNull
                                                 @NotNull Animation animation,
                                                 int x,
                                                 int y)
        Draws animation at [x, y]. The animation is always rendered at its first frame.
      • drawAnimation

        @NotNull
        @NotNull OverlayDrawing<?> drawAnimation​(@NotNull
                                                 @NotNull Animation animation,
                                                 int x,
                                                 int y,
                                                 float scale)
        Draws animation at [x, y], scaled at scale. The animation is always rendered at its first frame.
      • drawAnimation

        @NotNull
        @NotNull OverlayDrawing<?> drawAnimation​(@NotNull
                                                 @NotNull Animation animation,
                                                 int x,
                                                 int y,
                                                 float scale,
                                                 float rotation)
        Draws animation at [x, y], scaled at scale and rotated at rotation degrees. The animation is always rendered at its first frame.
      • render

        void render​(float deltaTime)
        Renders the overlay layer.