Interface ITextRenderer

  • All Superinterfaces:
    IConstants
    All Known Implementing Classes:
    TextRendererAdapter

    public interface ITextRenderer
    extends IConstants
    Provides convenience methods for rendering rotated text with configurable attributes on a graphics context.
    • Method Detail

      • renderShadowAtLocation

        void renderShadowAtLocation​(IPrimitiveRenderer idr,
                                    int iLabelPosition,
                                    Location lo,
                                    Label la)
                             throws ChartException
        This method renders the 'shadow' at an offset from the text 'rotated rectangle' subsequently rendered.
        Parameters:
        ipr -
        iLabelPosition - The position of the label w.r.t. the location specified by 'lo'
        lo - The location (specified as a 2d point) where the text is to be rendered
        la - The chart model structure containing the encapsulated text (and attributes) to be rendered
        Throws:
        ChartException
      • renderTextAtLocation

        void renderTextAtLocation​(IPrimitiveRenderer ipr,
                                  int iLabelPosition,
                                  Location lo,
                                  Label la)
                           throws ChartException
        Parameters:
        ipr -
        iLabelPosition - IConstants. LEFT, RIGHT, ABOVE or BELOW
        lo - POINT WHERE THE CORNER OF THE ROTATED RECTANGLE (OR EDGE CENTERED) IS RENDERED
        la -
        Throws:
        ChartException