Documentation of 'org.jplot2d.transform.RotatablePaperTransform' Java class
RotatablePaperTransform
org.jplot2d.transform

Class RotatablePaperTransform

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class RotatablePaperTransform
    extends PaperTransform
    Defines the conversion between paper units and device units. Every component has its own paper coordinate system, and maintains a PaperTransform object.

    The transform is defined by 4 parameters. The xoff is the paper distance between component left bound to device left bound. The yoff is the paper distance between component bottom bound to device top bound. The scale is the factor of device to paper. The theta is the conter-clockwise rotation angle in radians.

    • Constructor Detail

      • RotatablePaperTransform

        public RotatablePaperTransform(double xoff,
                                       double yoff,
                                       double scale,
                                       double theta)
      • RotatablePaperTransform

        public RotatablePaperTransform(double xoff,
                                       double yoff,
                                       double scale)
      • RotatablePaperTransform

        public RotatablePaperTransform(java.awt.geom.Point2D p,
                                       double scale)
    • Method Detail

      • getXDtoP

        public double getXDtoP(double xd)
        Description copied from class: PaperTransform
        Transform device units to paper for the x direction.
        Overrides:
        getXDtoP in class PaperTransform
        Parameters:
        xd - device x coordinate
        Returns:
        paper x coordinate
      • getYDtoP

        public double getYDtoP(double yd)
        Description copied from class: PaperTransform
        Transform device units to paper for the y direction.
        Overrides:
        getYDtoP in class PaperTransform
        Parameters:
        yd - device y coordinate
        Returns:
        paper y coordinate
      • getPtoD

        public java.awt.geom.Point2D getPtoD(java.awt.geom.Point2D p)
        Overrides:
        getPtoD in class PaperTransform
      • getDtoP

        public java.awt.geom.Point2D getDtoP(java.awt.geom.Point2D d)
        Overrides:
        getDtoP in class PaperTransform
      • getPtoD

        public java.awt.Shape getPtoD(java.awt.geom.Rectangle2D rect)
        Description copied from class: PaperTransform
        Returns a shape in device coordinate system.
        Overrides:
        getPtoD in class PaperTransform
        Returns:
      • getTransform

        public java.awt.geom.AffineTransform getTransform()
        Returns an AffineTransform to transform shapes from PCS to DCS.
        Overrides:
        getTransform in class PaperTransform

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.