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
Special provider for getting part images of
For getting instance of provider client should be used
This provider can be used for getting part images of different
Remember! Client should call
Attention! Client shouldn't call
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)
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
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
ConstructorsModifierConstructorDescriptionprotected
ChartImageProvider
(String id, Version version, ChartSerializer serializer, org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases special data for getting chart images
You should call this method if you have no plans to soon get images.getChartPartImages
(Chart chart, int width, int height, String langCode) Gets image ofChart
diagram partsgetChartPartImages
(Dendrogram chart, int width, int height, String langCode) Gets image ofDendrogram
diagram partsgetChartPartImages
(GanttChart chart, int width, int height, String langCode) Gets image ofGanttChart
diagram partsMethods inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
getLibraries, getMessageException, getProcessEnvironments, getRuntimeInstallation, getSystemLibraries
-
Constructor Details
-
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 Details
-
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)
.
-