com.supermap.services.components.impl

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.Boolean deleteSMLFile(java.lang.String smlFileName)
      According to the situation map file description to delete the specified situation map file information.
      void dispose()
      Release the resource object.
      GeoGraphicObject getGraphicObject(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.String getSMLFileContent(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.
      SymbolLib getSymbolLib(int libID)
      Obtains the label library information according to the label library ID.
      int[] getSymbolLibIDs()
      Returns all label library IDs supported by server.
      boolean saveAsSMLFile(java.lang.String content, java.lang.String smlFileName, java.lang.Boolean isCover)
      Stores the situation map file information
      void setComponentContext(ComponentContext context)
      Sets the context information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlotImpl

        public PlotImpl()
        

        The Constructor.

    • Method Detail

      • getSymbolLibIDs

        public int[] getSymbolLibIDs()
                              throws PlotException
        

        Returns all label library IDs supported by server.

        Specified by:
        getSymbolLibIDs in interface Plot
        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:
        getSymbolLib in interface Plot
        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:
        getGraphicObject in interface Plot
        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 PlotException
        

        Stores the situation map file information

        Specified by:
        saveAsSMLFile in interface Plot
        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 PlotException
        

        According to the situation map file description to obtain the specified situation map file content, in the form of a string to return.

        Specified by:
        getSMLFileContent in interface Plot
        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 PlotException
        

        According to the situation map file description to delete the specified situation map file information.

        Specified by:
        deleteSMLFile in interface Plot
        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 PlotException
        

        Gets the contents of the binary form of the specified situation map file.

        Specified by:
        getSMLFileBinary in interface Plot
        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:
        getSMLInfos in interface Plot
        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.
      • dispose

        public void dispose()
        

        Release the resource object. All classes that need to achieve releasing resources need to be implemented ().

        Specified by:
        dispose in interface Disposable