Documentation of 'kcl.waterloo.graphics.GJAbstractGraph0' Java class
GJAbstractGraph0
kcl.waterloo.graphics

Class GJAbstractGraph0

    • Constructor Detail

      • GJAbstractGraph0

        public GJAbstractGraph0()
    • Method Detail

      • yPositionToPixel

        public final double yPositionToPixel(double position)
        Description copied from interface: GJGraphInterface
        Convert an array of axis locations to a pixel values. This method does not compensate for rotation or zoom.
        Specified by:
        yPositionToPixel in interface GJGraphInterface
        Parameters:
        position - on y-axis
        Returns:
        pixel locations on y
      • yPositionToPixel

        public final double[] yPositionToPixel(double[] position)
        Description copied from interface: GJGraphInterface
        Convert an array of axis locations to a pixel values. This method does not compensate for rotation or zoom.
        Specified by:
        yPositionToPixel in interface GJGraphInterface
        Parameters:
        position - on y-axis
        Returns:
        pixel locations on y
      • yPositionToPixeli

        public final double[] yPositionToPixeli(double[] position)
        Description copied from interface: GJGraphInterface
        Convert an array of axis locations to a pixel values. The conversion may be done in-place, thus destroying the input values. This method does not compensate for rotation or zoom.
        Specified by:
        yPositionToPixeli in interface GJGraphInterface
        Parameters:
        position - on y-axis
        Returns:
        pixel locations on y
      • xPositionToPixel

        public final double xPositionToPixel(double position)
        Description copied from interface: GJGraphInterface
        Convert an axis location to a pixel value This method does not compensate for rotation or zoom.
        Specified by:
        xPositionToPixel in interface GJGraphInterface
        Parameters:
        position - on x-axis
        Returns:
        pixel location on x
      • xPositionToPixel

        public final double[] xPositionToPixel(double[] position)
        Description copied from interface: GJGraphInterface
        Convert an array of axis locations to a pixel values. This method does not compensate for rotation or zoom.
        Specified by:
        xPositionToPixel in interface GJGraphInterface
        Parameters:
        position - on x-axis
        Returns:
        pixel locations on x
      • xPositionToPixeli

        public final double[] xPositionToPixeli(double[] position)
        Description copied from interface: GJGraphInterface
        Convert an array of axis locations to a pixel values. The conversion may be done in-place, thus destroying the input values. This method does not compensate for rotation or zoom.
        Specified by:
        xPositionToPixeli in interface GJGraphInterface
        Parameters:
        position - on x-axis
        Returns:
        pixel locations on x
      • xPixelToPosition

        public final double xPixelToPosition(double pixel)
        Description copied from interface: GJGraphInterface
        Convert a pixel location to a graph coordinate on the x-axis. This method does not compensate for rotation or zoom.
        Specified by:
        xPixelToPosition in interface GJGraphInterface
        Parameters:
        pixel - location on x
        Returns:
        the position on the x-axis
      • xPixelToPosition

        public final double[] xPixelToPosition(double[] pixel)
        Description copied from interface: GJGraphInterface
        Convert an array of pixel locations to graph coordinates on the x-axis. This method does not compensate for rotation or zoom.
        Specified by:
        xPixelToPosition in interface GJGraphInterface
        Parameters:
        pixel - location on x
        Returns:
        the positions on the x-axis
      • xPixelToPositioni

        public final double[] xPixelToPositioni(double[] pixel)
        Description copied from interface: GJGraphInterface
        Convert an array of pixel locations to graph coordinates on the x-axis. The conversion may be done in-place, so the input data are destroyed in the process. This method does not compensate for rotation or zoom.
        Specified by:
        xPixelToPositioni in interface GJGraphInterface
        Parameters:
        pixel - location on x
        Returns:
        the positions on the x-axis
      • getPixelWidth

        public final double getPixelWidth()
        Description copied from interface: GJGraphInterface
        Returns the width of a pixel in graph coordinates. This method does not compensate for rotation or zoom.
        Specified by:
        getPixelWidth in interface GJGraphInterface
        Returns:
        the value
      • convertPixelsToPosition

        public final java.awt.geom.Rectangle2D convertPixelsToPosition(java.awt.geom.Rectangle2D r1)
        Description copied from interface: GJGraphInterface
        Returns a rectangle defined in axes units from a rectangle defined in pixels.
        Specified by:
        convertPixelsToPosition in interface GJGraphInterface
        Parameters:
        r1 - a Rectangle2D in pixels
        Returns:
        a Rectangle2D in axes units
      • yPixelToPosition

        public final double yPixelToPosition(double pixel)
        Description copied from interface: GJGraphInterface
        Convert a pixel location to a graph coordinate on the y-axis. This method does not compensate for rotation or zoom.
        Specified by:
        yPixelToPosition in interface GJGraphInterface
        Parameters:
        pixel - location on y
        Returns:
        the position on the y-axis
      • yPixelToPosition

        public final double[] yPixelToPosition(double[] pixel)
        Description copied from interface: GJGraphInterface
        Convert an array of pixel locations to graph coordinates on the y-axis. This method does not compensate for rotation or zoom.
        Specified by:
        yPixelToPosition in interface GJGraphInterface
        Parameters:
        pixel - location on y
        Returns:
        the positions on the y-axis
      • yPixelToPositioni

        public final double[] yPixelToPositioni(double[] pixel)
        Description copied from interface: GJGraphInterface
        Convert an array of pixel locations to graph coordinates on the y-axis. The conversion may be done in-place, so the input data are destroyed in the process. This method does not compensate for rotation or zoom.
        Specified by:
        yPixelToPositioni in interface GJGraphInterface
        Parameters:
        pixel - location on y
        Returns:
        the positions on the y-axis
      • getPixelHeight

        public final double getPixelHeight()
        Description copied from interface: GJGraphInterface
        Returns the height of a pixel in graph coordinates. This method does not compensate for rotation or zoom.
        Specified by:
        getPixelHeight in interface GJGraphInterface
        Returns:
        the value
      • getOrigin

        public final java.awt.geom.Point2D getOrigin()

        Gets the origin coordinates of the graph. The coordinates are represented as an instance of Point2D and stored in double format.

        Specified by:
        getOrigin in interface GJAxisSupportInterface
        Returns:
        the origin coordinates in double format
        See Also:
        setOrigin(Point2D), #setAxesBoundsAndOrigin(Rectangle2D)
      • setOrigin

        public final void setOrigin(java.awt.geom.Point2D origin)

        Sets the origin of the graph. The coordinates of the origin are defined by the coordinates of the point passed as parameter.

        If the specified view is null, nothing happens.

        Calling this method leaves the view intact.

        Specified by:
        setOrigin in interface GJAxisSupportInterface
        Parameters:
        origin - the coordinates of the new origin
        See Also:
        getOrigin(), #setAxesBoundsAndOrigin(Rectangle2D)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.