Class AbstractParallelVisualization<NV>

    • Field Detail

      • relation

        protected final Relation<NV> relation
        The representation we visualize
      • margins

        final double[] margins
        margin
      • axsep

        protected double axsep
        Space between two axes
      • size

        final double[] size
        viewbox size
    • Constructor Detail

      • AbstractParallelVisualization

        public AbstractParallelVisualization​(VisualizerContext context,
                                             VisualizationTask task,
                                             VisualizationPlot plot,
                                             double width,
                                             double height,
                                             Projection proj)
        Constructor.
        Parameters:
        context - Visualizer context
        task - Visualization task
        plot - Plot to draw to
        width - Embedding width
        height - Embedding height
        proj - Projection
    • Method Detail

      • setupCanvas

        public org.w3c.dom.Element setupCanvas​(SVGPlot svgp,
                                               ProjectionParallel proj,
                                               double width,
                                               double height)
        Utility function to setup a canvas element for the visualization.
        Parameters:
        svgp - Plot element
        proj - Projection to use
        width - Width
        height - Height
        Returns:
        wrapper element with appropriate view box.
      • getSizeX

        protected double getSizeX()
        Get width of main canvas.
        Returns:
        Width
      • getSizeY

        protected double getSizeY()
      • getMarginLeft

        protected double getMarginLeft()
      • getMarginTop

        protected double getMarginTop()
      • getAxisSep

        protected double getAxisSep()
        Distance between axes.
        Returns:
        Axis separation
      • recalcAxisPositions

        private void recalcAxisPositions()
        Recalculate axis positions, in particular after projection changes.
      • getVisibleAxisX

        protected double getVisibleAxisX​(double d)
        Get the position of visible axis d
        Parameters:
        d - Visible axis number
        Returns:
        Position