Class XYCurveVisualization

  • All Implemented Interfaces:
    VisualizationProcessor, VisFactory

    public class XYCurveVisualization
    extends java.lang.Object
    implements VisFactory
    Visualizer to render a simple 2D curve such as a ROC curve.
    Since:
    0.3
    Author:
    Erich Schubert
    • 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
    • Constructor Detail

      • XYCurveVisualization

        public XYCurveVisualization()
        Constructor, Parameterizable style - does nothing.
    • Method Detail

      • clipDraw

        private void clipDraw​(SVGPath path,
                              XYCurve curve,
                              double preX,
                              double preY,
                              double x,
                              double y,
                              LinearScale scalex,
                              LinearScale scaley,
                              double sizex,
                              double sizey)
        Clipped drawing function for an edge.
        Parameters:
        path - Path object to draw to
        curve - Curve object to draw (for drawing bounds)
        preX - starting x coordinate of the edge
        preY - starting y coordinate of the edge
        x - ending x coordinate of the edge
        y - ending y coordinate of the edge
        scalex - x-scale factor of the plot
        scaley - y-scale factor of the plot
        sizex - x-size of the plot
        sizey - y-size of the plot
      • setupCSS

        private void setupCSS​(VisualizerContext context,
                              SVGPlot svgp)
        Setup the CSS classes for the plot.
        Parameters:
        svgp - Plot
      • 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 interface VisFactory
        Parameters:
        task - Task requested