Java javax.print.attribute.standard MediaSize fields, constructors, methods, implement or subclass

Example usage for Java javax.print.attribute.standard MediaSize fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.print.attribute.standard MediaSize.

The text is from its open source code.

Constructor

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.

Method

MediaSizeNamefindMedia(float x, float y, int units)
The specified dimensions are used to locate a matching MediaSize instance from amongst all the standard MediaSize instances.
MediaSizegetMediaSizeForName(MediaSizeName media)
Get the MediaSize for the specified named media.
floatgetX(int units)
Returns this two-dimensional size attribute's X dimension in the given units as a floating-point value.
floatgetY(int units)
Returns this two-dimensional size attribute's Y dimension in the given units as a floating-point value.