Class XYPlotVisualization
- java.lang.Object
-
- elki.visualization.visualizers.visunproj.XYPlotVisualization
-
- All Implemented Interfaces:
VisualizationProcessor
,VisFactory
public class XYPlotVisualization extends java.lang.Object implements VisFactory
Visualizer to render a simple 2D curve such as a ROC curve.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CSS_AXIS_LABEL
Axis labelsprivate static java.lang.String
NAME
Name for this visualizer.private static java.lang.String
SERIESID
SVG class name for plot line
-
Constructor Summary
Constructors Constructor Description XYPlotVisualization()
Constructor, Parameterizable style - does nothing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowThumbnails(VisualizationTask task)
Test whether to do a thumbnail or a full rendering.Visualization
makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Produce a visualization instance for the given taskvoid
processNewResult(VisualizerContext context, java.lang.Object start)
Add visualizers for the given result (tree) to the context.private void
setupCSS(VisualizerContext context, SVGPlot svgp, XYPlot plot)
Setup the CSS classes for the plot.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.visualization.visualizers.VisFactory
makeVisualizationOrThumbnail
-
-
-
-
Field Detail
-
NAME
private static final java.lang.String NAME
Name for this visualizer.- See Also:
- Constant Field Values
-
SERIESID
private static final java.lang.String SERIESID
SVG class name for plot line- See Also:
- Constant Field Values
-
CSS_AXIS_LABEL
private static final java.lang.String CSS_AXIS_LABEL
Axis labels- See Also:
- Constant Field Values
-
-
Method Detail
-
makeVisualization
public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Description copied from interface:VisFactory
Produce a visualization instance for the given task- Specified by:
makeVisualization
in interfaceVisFactory
- Parameters:
context
- Visualization contexttask
- Visualization taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projection- Returns:
- Visualization
-
setupCSS
private void setupCSS(VisualizerContext context, SVGPlot svgp, XYPlot plot)
Setup the CSS classes for the plot.- Parameters:
svgp
- Plotplot
- Plot to render
-
processNewResult
public void processNewResult(VisualizerContext context, java.lang.Object start)
Description copied from interface:VisFactory
Add visualizers for the given result (tree) to the context.- Specified by:
processNewResult
in interfaceVisFactory
- Specified by:
processNewResult
in interfaceVisualizationProcessor
- Parameters:
context
- Visualization contextstart
- Result to process
-
allowThumbnails
public boolean allowThumbnails(VisualizationTask task)
Description copied from interface:VisFactory
Test whether to do a thumbnail or a full rendering. Override this with "false" to disable thumbnails!- Specified by:
allowThumbnails
in interfaceVisFactory
- Parameters:
task
- Task requested
-
-