Class TextJ2DRenderer

  • All Implemented Interfaces:
    IJ2DRenderer

    public class TextJ2DRenderer
    extends java.lang.Object
    implements IJ2DRenderer
    • Constructor Detail

      • TextJ2DRenderer

        public TextJ2DRenderer()
    • Method Detail

      • prepareAndExecuteDraw

        public void prepareAndExecuteDraw​(DrawableCombiner dc,
                                          Primitive primitive,
                                          java.lang.Object obj,
                                          ViewportJ2D vp)
        Prepares the object for rendering to a Java2D viewport
        Specified by:
        prepareAndExecuteDraw in interface IJ2DRenderer
        Parameters:
        dc - the DrawableCombiner drawing the object
        primitive - the primitive being drawn
        obj - the object being drawn
        vp - the viewport
      • draw

        public void draw​(DrawableCombiner dc,
                         Primitive primitive,
                         java.lang.Object obj,
                         ViewportJ2D vp)
        Draws the primitive.
        Specified by:
        draw in interface IJ2DRenderer
        Parameters:
        dc - the DrawableCombiner drawing the object
        primitive - the primitive being drawn
        obj - the object being drawn
        vp - the viewport