Class TextRenderer.DefaultRenderDelegate

    • Constructor Detail

      • DefaultRenderDelegate

        public DefaultRenderDelegate()
    • Method Detail

      • drawGlyphVector

        public void drawGlyphVector​(Graphics2D graphics,
                                    GlyphVector str,
                                    int x,
                                    int y)
        Description copied from interface: TextRenderer.RenderDelegate
        Render the passed GlyphVector at the designated location using the supplied Graphics2D instance. The surrounding region will already have been cleared to the RGB color (0, 0, 0) with zero alpha. The initial drawing context of the passed Graphics2D will be set to use AlphaComposite.Src, the color white, the Font specified in the TextRenderer's constructor, and the rendering hints specified in the TextRenderer constructor. Changes made by the end user may be visible in successive calls to this method, but are not guaranteed to be preserved. Implementors of this method should reset the Graphics2D's state to that desired each time this method is called, in particular those states which are not the defaults.
        Specified by:
        drawGlyphVector in interface TextRenderer.RenderDelegate
      • draw

        public void draw​(Graphics2D graphics,
                         String str,
                         int x,
                         int y)
        Description copied from interface: TextRenderer.RenderDelegate
        Render the passed character sequence at the designated location using the supplied Graphics2D instance. The surrounding region will already have been cleared to the RGB color (0, 0, 0) with zero alpha. The initial drawing context of the passed Graphics2D will be set to use AlphaComposite.Src, the color white, the Font specified in the TextRenderer's constructor, and the rendering hints specified in the TextRenderer constructor. Changes made by the end user may be visible in successive calls to this method, but are not guaranteed to be preserved. Implementors of this method should reset the Graphics2D's state to that desired each time this method is called, in particular those states which are not the defaults.
        Specified by:
        draw in interface TextRenderer.RenderDelegate