Class SizeMapping
Object
SizeMapping
Maps a
Path to a particular image-size and orientation-change.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignExtent(Extent extent) Replace the existingExtentwith a new value.The size.getPath()The path.scaleXYBy(ScaleFactor scaleFactor) Scales the XY dimensions the factor.
-
Constructor Details
-
SizeMapping
Creates a newSizeMappinginstance.- Parameters:
path- The path.extent- The size.
-
-
Method Details
-
assignExtent
Replace the existingExtentwith a new value.- Parameters:
extent- the extent to assign.
-
scaleXYBy
Scales the XY dimensions the factor.This is an immutable method.
- Parameters:
scaleFactor- the factor to scale by.- Returns:
- a new
SizeMappingwith the scale-factor applied.
-
getPath
The path. -
getExtent
The size.
-