Class PlotImpl
- java.lang.Object
-
- com.supermap.services.components.impl.PlotImpl
-
- All Implemented Interfaces:
- ComponentContextAware, Plot, Disposable
public class PlotImpl extends java.lang.Object implements Plot, ComponentContextAware, Disposable
The implementation class for the dynamic plotting service component interface (
Data).Dynamically plotting service component is a class of GIS service components that encapsulate GIS functions related to dynamic plotting.
The class is the default implementation class for the dynamically plotting service component interface (
Data).The service provider type used by the dynamically plotting service component must be a dynamically plotting service provider (
DataProvider).
-
-
Constructor Summary
Constructors Constructor and Description PlotImpl()The Constructor.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.BooleandeleteSMLFile(java.lang.String smlFileName)According to the situation map file description to delete the specified situation map file information.voiddispose()Release the resource object.GeoGraphicObjectgetGraphicObject(GetGraphicObjectParameter getGOParameters)Obtains graphic object information according to LibID, Code, point string and other related parameters.byte[]getSMLFileBinary(java.lang.String smlFileName)Gets the contents of the binary form of the specified situation map file.java.lang.StringgetSMLFileContent(java.lang.String smlFileName)According to the situation map file description to obtain the specified situation map file content, in the form of a string to return.java.util.List<SMLInfo>getSMLInfos(int start, int count)Gets the list of situation map information.SymbolLibgetSymbolLib(int libID)Obtains the label library information according to the label library ID.int[]getSymbolLibIDs()Returns all label library IDs supported by server.booleansaveAsSMLFile(java.lang.String content, java.lang.String smlFileName, java.lang.Boolean isCover)Stores the situation map file informationvoidsetComponentContext(ComponentContext context)Sets the context information.
-
-
-
Method Detail
-
getSymbolLibIDs
public int[] getSymbolLibIDs() throws PlotExceptionReturns all label library IDs supported by server.
- Specified by:
getSymbolLibIDsin interfacePlot- Returns:
- Returns the list of label library IDs.
- Throws:
PlotException- Dynamically plotting service component exception information.
-
getSymbolLib
public SymbolLib getSymbolLib(int libID) throws PlotException
Obtains the label library information according to the label library ID.
- Specified by:
getSymbolLibin interfacePlot- Parameters:
libID- Label library ID.- Returns:
- Returns label library information.
- Throws:
PlotException- Dynamically plotting service component exception information.
-
getGraphicObject
public GeoGraphicObject getGraphicObject(GetGraphicObjectParameter getGOParameters) throws PlotException
Obtains graphic object information according to LibID, Code, point string and other related parameters.
- Specified by:
getGraphicObjectin interfacePlot- Parameters:
getGOParameters- Related parameters.- Returns:
- Returns the primitive object information.
- Throws:
PlotException- Dynamically plotting service component exception information.
-
saveAsSMLFile
public boolean saveAsSMLFile(java.lang.String content, java.lang.String smlFileName, java.lang.Boolean isCover) throws PlotExceptionStores the situation map file information
- Specified by:
saveAsSMLFilein interfacePlot- Parameters:
content- Situation chart content.smlFileName- Saves the name of the situation picture file.isCover- Whether or not to cover the existing situation map.- Returns:
- Whether the preservation is successful
- Throws:
PlotException- Dynamically plotting service component exception information.
-
getSMLFileContent
public java.lang.String getSMLFileContent(java.lang.String smlFileName) throws PlotExceptionAccording to the situation map file description to obtain the specified situation map file content, in the form of a string to return.
- Specified by:
getSMLFileContentin interfacePlot- Parameters:
smlFileName- Situation map physical file name.- Returns:
- Situation map information.
- Throws:
PlotException- Dynamically plotting service component exception information.
-
deleteSMLFile
public java.lang.Boolean deleteSMLFile(java.lang.String smlFileName) throws PlotExceptionAccording to the situation map file description to delete the specified situation map file information.
- Specified by:
deleteSMLFilein interfacePlot- Parameters:
smlFileName- Situation map physical file name.- Returns:
- Whether the deletion was successful.
- Throws:
PlotException- Dynamically plotting service component exception information.
-
getSMLFileBinary
public byte[] getSMLFileBinary(java.lang.String smlFileName) throws PlotExceptionGets the contents of the binary form of the specified situation map file.
- Specified by:
getSMLFileBinaryin interfacePlot- Parameters:
smlFileName- Situation map physical file name.- Returns:
- File flow.
- Throws:
PlotException- Dynamically plotting service component exception information.
-
getSMLInfos
public java.util.List<SMLInfo> getSMLInfos(int start, int count) throws PlotException
Gets the list of situation map information.
- Specified by:
getSMLInfosin interfacePlot- Parameters:
start- Returns the starting index of the situation map file list.count- Returns the number of the situation map file list.- Returns:
- Gets the list of situation map information.
- Throws:
PlotException- Dynamically plotting service component exception information.
-
setComponentContext
public void setComponentContext(ComponentContext context)
Sets the context information.
- Specified by:
setComponentContextin interfaceComponentContextAware- Parameters:
context- Context information
-
dispose
public void dispose()
Release the resource object. All classes that need to achieve releasing resources need to be implemented
().- Specified by:
disposein interfaceDisposable
-
-