NV
- Number vector typepublic static class P1DHistogramVisualizer.Factory<NV extends NumberVector<NV,?>> extends AbstractVisFactory
Modifier and Type | Class and Description |
---|---|
static class |
P1DHistogramVisualizer.Factory.Parameterizer<NV extends NumberVector<NV,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private int |
bins
Number of bins to use in the histogram.
|
private boolean |
curves
Internal storage of the curves flag.
|
private static int |
DEFAULT_BINS
Number of bins to use in histogram.
|
static OptionID |
HISTOGRAM_BINS_ID
Parameter to specify the number of bins to use in histogram.
|
static OptionID |
STYLE_CURVES_ID
Flag to specify the "curves" rendering style.
|
Constructor and Description |
---|
P1DHistogramVisualizer.Factory(boolean curves,
int bins)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowThumbnails(VisualizationTask task)
Test whether to do a thumbnail or a full rendering.
|
Visualization |
makeVisualization(VisualizationTask task)
Produce a visualization instance for the given task
|
void |
processNewResult(HierarchicalResult baseResult,
Result result)
Add visualizers for the given result (tree) to the context.
|
makeVisualizationOrThumbnail
public static final OptionID STYLE_CURVES_ID
Key: -histogram.curves
public static final OptionID HISTOGRAM_BINS_ID
Key: -projhistogram.bins
Default: 20
private boolean curves
private static final int DEFAULT_BINS
private int bins
public P1DHistogramVisualizer.Factory(boolean curves, int bins)
curves
- bins
- public Visualization makeVisualization(VisualizationTask task)
VisFactory
makeVisualization
in interface VisFactory
makeVisualization
in class AbstractVisFactory
task
- Visualization taskpublic void processNewResult(HierarchicalResult baseResult, Result result)
VisFactory
baseResult
- Context to work withresult
- Result to processpublic boolean allowThumbnails(VisualizationTask task)
AbstractVisFactory
allowThumbnails
in class AbstractVisFactory
task
- Task requested