Class StyleMapEditor

    • Constructor Detail

      • StyleMapEditor

        public StyleMapEditor​(JFrame aOwner,
                              CAS cas)
        Creates a new `Editor.
    • Method Detail

      • launchEditor

        public String launchEditor​(AnalysisEngineMetaData aAnalysisEngineMetaData,
                                   String aStyleMapXml,
                                   CAS cas)
        Displays the StyleMapEditor GUI and allows the user to edit a style map. When the user has finished, the new style map is returned.
        Parameters:
        aAnalysisEngineMetaData - Metadata for the AnalysisEngine whose style map is to be edited. This contains the AE's capabilities and type system definition, which are needed by the editor.
        aStyleMapXml - An existing style map XML document that will be loaded into the editor. This is optional, if null is passed in, a default style map will be automatically generated from the AE metadata.
        Returns:
        a new style map XML document. If the user cancels, null is returned.
      • createStyleList

        public ArrayList createStyleList​(AnalysisEngineMetaData aAnalysisEngineMetaData,
                                         String aStyleMapXml)
        Creates a List of StyleMapEntry objects from the given AnalysisEngineMetaData and style map XML.
        Parameters:
        aAnalysisEngineMetaData - Metadata for the AnalysisEngine whose style map is being edited.
        aStyleMapXml - An existing style map XML document. This is optional, if null is passed in, a default style map will be automatically generated.
        Returns:
        an ArrayList containing one StyleMapEntry object for each output type declared in aTaeMetaData.
      • parseStyleList

        public ArrayList parseStyleList​(String aStyleMapXml)
      • getAnnotationsTable

        protected StyleMapTable getAnnotationsTable()
      • addRow

        public void addRow​(String typeName)