Class SizeMapping

Object
SizeMapping

public class SizeMapping extends Object
Maps a Path to a particular image-size and orientation-change.
Author:
Owen Feehan
  • Constructor Details

    • SizeMapping

      public SizeMapping(Path path, Extent extent)
      Creates a new SizeMapping instance.
      Parameters:
      path - The path.
      extent - The size.
  • Method Details

    • assignExtent

      public void assignExtent(Extent extent)
      Replace the existing Extent with a new value.
      Parameters:
      extent - the extent to assign.
    • scaleXYBy

      public SizeMapping scaleXYBy(ScaleFactor scaleFactor)
      Scales the XY dimensions the factor.

      This is an immutable method.

      Parameters:
      scaleFactor - the factor to scale by.
      Returns:
      a new SizeMapping with the scale-factor applied.
    • getPath

      public Path getPath()
      The path.
    • getExtent

      public Extent getExtent()
      The size.