public void setDimensions(double h, double w, units hunits, units wunits) { _desiredHeight = h; _desiredWidth = w; _heightUnits = hunits; _widthUnits = wunits; _size = findOptimalSize(_desiredHeight, hunits, _desiredWidth, wunits); }
public RenderSpecs(Layout layout) { _desiredHeight = layout.Dimensions.Height; _desiredWidth = layout.Dimensions.Width; _height = layout.Dimensions.Height; _width = layout.Dimensions.Width; _widthUnits = units.pts; _heightUnits = units.pts; setStandardPageSizes(); _size = findOptimalSize(_desiredHeight, units.pts, _desiredWidth, units.pts); }