Class PlainTextExporter

    • Field Detail

      • m_UseCustomRenderer

        protected boolean m_UseCustomRenderer
        whether to use a custom renderer.
      • m_CustomRenderer

        protected TextRenderer m_CustomRenderer
        the custom renderer to use.
      • m_UnlimitedRendering

        protected boolean m_UnlimitedRendering
        whether to perform unlimited rendering.
    • Constructor Detail

      • PlainTextExporter

        public PlainTextExporter()
    • Method Detail

      • setUseCustomRenderer

        public void setUseCustomRenderer​(boolean value)
        Sets whether to use a custom renderer.
        Parameters:
        value - true if custom
      • getUseCustomRenderer

        public boolean getUseCustomRenderer()
        Returns whether to use a custom renderer.
        Returns:
        true if custom
      • useCustomRendererTipText

        public String useCustomRendererTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setCustomRenderer

        public void setCustomRenderer​(TextRenderer value)
        Sets the custom renderer to use.
        Parameters:
        value - the renderer
      • getCustomRenderer

        public TextRenderer getCustomRenderer()
        Returns the custom renderer to use.
        Returns:
        the renderer
      • customRendererTipText

        public String customRendererTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setUnlimitedRendering

        public void setUnlimitedRendering​(boolean value)
        Sets whether to use unlimited rendering (if possible).
        Parameters:
        value - true if unlimited
      • getUnlimitedRendering

        public boolean getUnlimitedRendering()
        Returns whether to use unlimited rendering if possible.
        Returns:
        true if unlimited
      • unlimitedRenderingTipText

        public String unlimitedRenderingTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • handles

        public boolean handles​(Class cls)
        Checks whether the exporter can handle the specified class.
        Specified by:
        handles in class AbstractObjectExporter
        Parameters:
        cls - the class to check
        Returns:
        true if the exporter can handle this type of object
      • doExport

        protected String doExport​(Object obj,
                                  File file)
        Performs the actual export.
        Specified by:
        doExport in class AbstractObjectExporter
        Parameters:
        obj - the object to export
        file - the file to export to
        Returns:
        null if successful, otherwise error message