Package elki.result
Class ExportVisualizations
- java.lang.Object
-
- elki.result.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 theVisualizerParameterizer
, in particular the pattern for choosing which visualizers to run.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExportVisualizations.Format
File formatstatic class
ExportVisualizations.Par
Parameterization class
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Object
baseResult
Base result(package private) VisualizerContext
context
Visualizer context(package private) java.util.Map<java.lang.String,java.lang.Integer>
counter
Output counter.(package private) ExportVisualizations.Format
format
Output file format.(package private) int
iwidth
Image width for pixel output.private static Logging
LOG
Get a logger for this class.(package private) VisualizerParameterizer
manager
Visualization manager.(package private) java.nio.file.Path
output
Output folder(package private) double
ratio
Ratio for canvas
-
Constructor Summary
Constructors Constructor Description ExportVisualizations(java.nio.file.Path output, VisualizerParameterizer manager, double ratio, ExportVisualizations.Format format)
Constructor.ExportVisualizations(java.nio.file.Path output, VisualizerParameterizer manager, double ratio, ExportVisualizations.Format format, int iwidth)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
processItem(PlotItem item)
void
processNewResult(java.lang.Object newResult)
Process a result.
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Get a logger for this class.
-
output
java.nio.file.Path output
Output folder
-
manager
VisualizerParameterizer manager
Visualization manager.
-
ratio
double ratio
Ratio for canvas
-
baseResult
java.lang.Object baseResult
Base result
-
context
VisualizerContext context
Visualizer context
-
counter
java.util.Map<java.lang.String,java.lang.Integer> counter
Output counter.
-
format
ExportVisualizations.Format format
Output file format.
-
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 foldermanager
- Parameterizerratio
- Canvas ratioformat
- Output file format
-
ExportVisualizations
public ExportVisualizations(java.nio.file.Path output, VisualizerParameterizer manager, double ratio, ExportVisualizations.Format format, int iwidth)
Constructor.- Parameters:
output
- Output foldermanager
- Parameterizerratio
- Canvas ratioformat
- Output file formatiwidth
- 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 interfaceResultProcessor
- Parameters:
newResult
- Newly added result subtree.
-
processItem
private void processItem(PlotItem item)
-
-