Example usage for Java javax.print.attribute.standard MediaSize fields, constructors, methods, implement or subclass
The text is from its open source code.
MediaSize(float x, float y, int units) Construct a new media size attribute from the given floating-point values. | |
MediaSize(int x, int y, int units) Construct a new media size attribute from the given integer values. |
MediaSizeName | findMedia(float x, float y, int units) The specified dimensions are used to locate a matching MediaSize instance from amongst all the standard MediaSize instances. |
MediaSize | getMediaSizeForName(MediaSizeName media) Get the MediaSize for the specified named media. |
float | getX(int units) Returns this two-dimensional size attribute's X dimension in the given units as a floating-point value. |
float | getY(int units) Returns this two-dimensional size attribute's Y dimension in the given units as a floating-point value. |