Package com._1c.g5.v8.dt.chart.common
Class ChartImageProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
-
- com._1c.g5.v8.dt.chart.common.ChartImageProvider
-
public class ChartImageProvider extends AbstractScomConnectionLoader
Special provider for getting part images ofChart
(GanttChart
orDendrogram
) by concreteVersion
.
For getting instance of provider client should be usedChartImageServiceProvider
This provider can be used for getting part images of differentChart
by concreteVersion
.
Remember! Client should calldispose()
if he has no plans to soon get images.
Attention! Client shouldn't calldispose()
after each call ofgetChartPartImages(Chart, int, int, String)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChartImageProvider.ChartImagePart
Special class contains three image parts of diagram: main part, legend part and title part
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
LD_LIBRARY_PATH, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChartImageProvider(String id, Version version, ChartSerializer serializer, org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Releases special data for getting chart images
You should call this method if you have no plans to soon get images.ChartImageProvider.ChartImagePart
getChartPartImages(Chart chart, int width, int height, String langCode)
Gets image ofChart
diagram partsChartImageProvider.ChartImagePart
getChartPartImages(Dendrogram chart, int width, int height, String langCode)
Gets image ofDendrogram
diagram partsChartImageProvider.ChartImagePart
getChartPartImages(GanttChart chart, int width, int height, String langCode)
Gets image ofGanttChart
diagram parts-
Methods inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
getLibraries, getMessageException, getProcessEnvironments, getRuntimeInstallation, getSystemLibraries
-
-
-
-
Constructor Detail
-
ChartImageProvider
protected ChartImageProvider(String id, Version version, ChartSerializer serializer, org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager)
Constructor- Parameters:
id
- unique id for creating infrastructure for getting chart images, can't benull
version
- actualVersion
for getting images, can't benull
serializer
- actualChartSerializer
, can't benull
scopeProvider
- actualIGlobalScopeProvider
, can't benull
processManager
- actualIProcessManager
, can't benull
resolvableRuntimeInstallationManager
- actualIResolvableRuntimeInstallationManager
, can't benull
-
-
Method Detail
-
getChartPartImages
public ChartImageProvider.ChartImagePart getChartPartImages(Chart chart, int width, int height, String langCode)
Gets image ofChart
diagram parts
-
getChartPartImages
public ChartImageProvider.ChartImagePart getChartPartImages(GanttChart chart, int width, int height, String langCode)
Gets image ofGanttChart
diagram parts- Parameters:
chart
- actualGanttChart
for getting images, can't benull
width
- full width of chart diagramheight
- full height of chart diagramlangCode
- current language code, can't benull
- Returns:
- image of
GanttChart
diagram parts. If error occurred while creating diagramnull
will be return.
-
getChartPartImages
public ChartImageProvider.ChartImagePart getChartPartImages(Dendrogram chart, int width, int height, String langCode)
Gets image ofDendrogram
diagram parts- Parameters:
chart
- actualDendrogram
for getting images, can't benull
width
- full width of chart diagramheight
- full height of chart diagramlangCode
- current language code, can't benull
- Returns:
- image of
Dendrogram
diagram parts. If error occurred while creating diagramnull
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 ofgetChartPartImages(Chart, int, int, String)
.
-
-