Class ChartImageProvider


public class ChartImageProvider extends AbstractScomConnectionLoader
Special provider for getting part images of Chart (GanttChart or Dendrogram) by concrete Version.
For getting instance of provider client should be used ChartImageServiceProvider
This provider can be used for getting part images of different Chart by concrete Version.
Remember! Client should call dispose() if he has no plans to soon get images.
Attention! Client shouldn't call dispose() after each call of getChartPartImages(Chart, int, int, String).
  • Constructor Details

  • Method Details

    • getChartPartImages

      public ChartImageProvider.ChartImagePart getChartPartImages(Chart chart, int width, int height, String langCode)
      Gets image of Chart diagram parts
      Parameters:
      chart - actual Chart for getting images, can't be null
      width - full width of chart diagram
      height - full height of chart diagram
      langCode - current language code, can't be null
      Returns:
      images of Chart diagram parts. If error occurred while creating diagram null will be return.
    • getChartPartImages

      public ChartImageProvider.ChartImagePart getChartPartImages(GanttChart chart, int width, int height, String langCode)
      Gets image of GanttChart diagram parts
      Parameters:
      chart - actual GanttChart for getting images, can't be null
      width - full width of chart diagram
      height - full height of chart diagram
      langCode - current language code, can't be null
      Returns:
      image of GanttChart diagram parts. If error occurred while creating diagram null will be return.
    • getChartPartImages

      public ChartImageProvider.ChartImagePart getChartPartImages(Dendrogram chart, int width, int height, String langCode)
      Gets image of Dendrogram diagram parts
      Parameters:
      chart - actual Dendrogram for getting images, can't be null
      width - full width of chart diagram
      height - full height of chart diagram
      langCode - current language code, can't be null
      Returns:
      image of Dendrogram diagram parts. If error occurred while creating diagram null will be return.
    • dispose

      public void dispose()
      Releases special data for getting chart images
      You should call this method if you have no plans to soon get images. Attention! Client shouldn't call it after each call of getChartPartImages(Chart, int, int, String).