Size
Kind: class
Module/package: com.pdfdancer.common.model
SDK: com.pdfdancer.client:pdfdancer-client-java 2.0.0
Represents dimensional measurements with width and height properties. This class encapsulates size information for PDF objects (images, forms, etc.), providing both individual dimension access and calculated area methods.
Declaration
public class com.pdfdancer.common.model.Size
Members
constructor
public com.pdfdancer.common.model.Size()
Default constructor for serialization frameworks.
constructor
public com.pdfdancer.common.model.Size(double, double)
Creates a size with specified width and height dimensions.
getArea
public double getArea()
Calculates and returns the total area. This method computes the area by multiplying width and height, useful for size comparisons and layout calculations.
getHeight
public double getHeight()
Returns the height dimension.
getWidth
public double getWidth()
Returns the width dimension.
setHeight
public void setHeight(double)
Sets the height dimension.
setWidth
public void setWidth(double)
Sets the width dimension.