Package elki.result

Class ExportVisualizations

  • All Implemented Interfaces:
    ResultHandler, ResultProcessor

    public class ExportVisualizations
    extends java.lang.Object
    implements ResultHandler
    Class that automatically generates all visualizations and exports them into SVG files. To configure the export, you will want to configure the VisualizerParameterizer, in particular the pattern for choosing which visualizers to run.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        Get a logger for this class.
      • output

        java.nio.file.Path output
        Output folder
      • ratio

        double ratio
        Ratio for canvas
      • baseResult

        java.lang.Object baseResult
        Base result
      • counter

        java.util.Map<java.lang.String,​java.lang.Integer> counter
        Output counter.
      • iwidth

        int iwidth
        Image width for pixel output.
    • Constructor Detail

      • ExportVisualizations

        public ExportVisualizations​(java.nio.file.Path output,
                                    VisualizerParameterizer manager,
                                    double ratio,
                                    ExportVisualizations.Format format)
        Constructor.
        Parameters:
        output - Output folder
        manager - Parameterizer
        ratio - Canvas ratio
        format - Output file format
      • ExportVisualizations

        public ExportVisualizations​(java.nio.file.Path output,
                                    VisualizerParameterizer manager,
                                    double ratio,
                                    ExportVisualizations.Format format,
                                    int iwidth)
        Constructor.
        Parameters:
        output - Output folder
        manager - Parameterizer
        ratio - Canvas ratio
        format - Output file format
        iwidth - Image width for pixel formats
    • Method Detail

      • processNewResult

        public void processNewResult​(java.lang.Object newResult)
        Description copied from interface: ResultProcessor
        Process a result.
        Specified by:
        processNewResult in interface ResultProcessor
        Parameters:
        newResult - Newly added result subtree.
      • processItem

        private void processItem​(PlotItem item)