Interface ProjectionParallel

  • All Superinterfaces:
    Projection, VisualizationItem
    All Known Implementing Classes:
    SimpleParallel

    public interface ProjectionParallel
    extends Projection
    Projection to parallel coordinates that allows reordering and inversion of axes. Note: when using this projection, pay attention to the two different schemes of dimension numbering: by input dimension and by axis position.
    Since:
    0.5.0
    Author:
    Robert Rödler, Erich Schubert
    • Method Detail

      • isAxisInverted

        boolean isAxisInverted​(int axis)
        Get inversion flag of axis.
        Parameters:
        axis - Axis (reordered) position
        Returns:
        Inversion flag
      • setAxisInverted

        void setAxisInverted​(int axis,
                             boolean bool)
        Set inversion flag of axis.
        Parameters:
        axis - Axis (reordered) position
        bool - Value of inversion flag
      • toggleAxisInverted

        void toggleAxisInverted​(int axis)
        Toggle inverted flag of axis.
        Parameters:
        axis - Axis (reordered) position
      • isDimInverted

        boolean isDimInverted​(int truedim)
        Get inversion flag of dimension.
        Parameters:
        truedim - Dimension in original numbering
        Returns:
        Inversion flag
      • setDimInverted

        void setDimInverted​(int truedim,
                            boolean bool)
        Set inversion flag of a dimension.
        Parameters:
        truedim - Dimension in original numbering
        bool - Value of inversion flag
      • toggleDimInverted

        void toggleDimInverted​(int truedim)
        Toggle inverted flag of dimension.
        Parameters:
        truedim - Dimension in original numbering
      • getAxisScale

        LinearScale getAxisScale​(int axis)
        Get scale for the given axis
        Parameters:
        axis - Axis (reordered) position
        Returns:
        Axis scale
      • isAxisVisible

        boolean isAxisVisible​(int axis)
        Test whether the current axis is visible
        Parameters:
        axis - Axis (reordered) position
        Returns:
        Visibility of axis
      • setAxisVisible

        void setAxisVisible​(int axis,
                            boolean vis)
        Set the visibility of the axis.
        Parameters:
        axis - Axis number
        vis - Visibility status
      • toggleAxisVisible

        void toggleAxisVisible​(int axis)
        Toggle visibility of the axis.
        Parameters:
        axis - Axis number
      • getVisibleDimensions

        int getVisibleDimensions()
        Get the number of visible dimension.
        Returns:
        Number of visible dimensions
      • swapAxes

        void swapAxes​(int a,
                      int b)
        Exchange axes A and B
        Parameters:
        a - First axis
        b - Second axis
      • moveAxis

        void moveAxis​(int axis,
                      int rn)
        shift a dimension to another position
        Parameters:
        axis - axis to shift
        rn - new position
      • getDimForAxis

        int getDimForAxis​(int axis)
        Get the dimension for the given axis number
        Parameters:
        axis - Axis number
        Returns:
        Dimension
      • getDimForVisibleAxis

        int getDimForVisibleAxis​(int axis)
        Get the dimension for the given visible axis
        Parameters:
        axis - Axis number (visible axes only)
        Returns:
        Dimension
      • fastProjectDataToRenderSpace

        double[] fastProjectDataToRenderSpace​(double[] v)
        Fast project a vector from data to render space
        Parameters:
        v - Input vector
        Returns:
        Vector with reordering, inversions and scales applied.
      • fastProjectDataToRenderSpace

        double[] fastProjectDataToRenderSpace​(NumberVector v)
        Fast project a vector from data to render space
        Parameters:
        v - Input vector
        Returns:
        Vector with reordering, inversions and scales applied.
      • fastProjectDataToRenderSpace

        double fastProjectDataToRenderSpace​(double value,
                                            int axis)
        Project the value of a single axis to its display value
        Parameters:
        value - Input value
        axis - Axis to use for scaling and inversion
        Returns:
        Transformed value
      • fastProjectRenderToDataSpace

        double fastProjectRenderToDataSpace​(double value,
                                            int axis)
        Project a display value back to the original data space
        Parameters:
        value - transformed value
        axis - Axis to use for scaling and inversion
        Returns:
        Original value
      • getAxisForDim

        int getAxisForDim​(int truedim)
        Find the axis assigned to the given dimension.
        Parameters:
        truedim - Dimension
        Returns:
        Axis number