Interface IChartComputation

    • Method Detail

      • dispose

        void dispose()
      • getTextMetrics

        ITextMetrics getTextMetrics​(IDisplayServer xs,
                                    Label la,
                                    double wrapping)
        Returns a text metrics.
        Parameters:
        xs -
        la -
        wrapping -
        Returns:
      • recycleTextMetrics

        void recycleTextMetrics​(ITextMetrics itm)
        Dispose the text metrics.
        Parameters:
        itm -
      • computeFontHeight

        double computeFontHeight​(IDisplayServer xs,
                                 Label la)
                          throws ChartException
        Convenient method to compute the font's height of a label. This computation is costly, but in most case we do not change the font of a label, we just change the string value, so the font height will not changed. The purpose of the method is to get the font height overhead for reusing.
        Parameters:
        xs -
        la -
        Returns:
        font height
        Throws:
        ChartException
      • computePolygon

        RotatedRectangle computePolygon​(IDisplayServer xs,
                                        int iLabelLocation,
                                        Label la,
                                        double dX,
                                        double dY,
                                        java.lang.Double fontHeight)
                                 throws ChartException
        Compute the bounding polygon of a label.
        Parameters:
        xs -
        iLabelLocation -
        la -
        dX -
        dY -
        fontHeight -
        Returns:
        Throws:
        ChartException