PrintPaperSize
Inheritance: java.lang.Object
public class PrintPaperSize
Specifies the size of a piece of paper.
Constructors
Constructor | Description |
---|---|
PrintPaperSize() | Initializes a new instance of the PaperSize class. |
PrintPaperSize(String name, int width, int height) | Initializes a new instance of the PaperSize class. |
PrintPaperSize(int kind, String name, int width, int height) | Initializes a new instance of the PaperSize class. |
Methods
Method | Description |
---|---|
getHeight() | Gets or sets the height of the paper, in hundredths of an inch. |
getKind() | Gets the type of paper. |
getPaperName() | Gets or sets the name of the type of paper. |
getRawKind() | Gets or sets an integer representing one of the PaperSize values or a custom value. |
getWidth() | Gets or sets the width of the paper, in hundredths of an inch. |
setHeight(int value) | Gets or sets the height of the paper, in hundredths of an inch. |
setPaperName(String value) | Gets the name of the type of paper. |
setWidth(int value) | Sets the width of the paper, in hundredths of an inch. |
toString() | Gets the name of this instance. |
PrintPaperSize()
public PrintPaperSize()
Initializes a new instance of the PaperSize class.
PrintPaperSize(String name, int width, int height)
public PrintPaperSize(String name, int width, int height)
Initializes a new instance of the PaperSize class.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | String value |
width | int | int value |
height | int | int value |
PrintPaperSize(int kind, String name, int width, int height)
public PrintPaperSize(int kind, String name, int width, int height)
Initializes a new instance of the PaperSize class.
Parameters:
Parameter | Type | Description |
---|---|---|
kind | int | The kind of the paper. |
name | java.lang.String | String value |
width | int | int value |
height | int | int value |
getHeight()
public int getHeight()
Gets or sets the height of the paper, in hundredths of an inch.
Returns: int - int value
getKind()
public int getKind()
Gets the type of paper.
Returns: int - int value
getPaperName()
public String getPaperName()
Gets or sets the name of the type of paper.
Returns: java.lang.String - String value
getRawKind()
public int getRawKind()
Gets or sets an integer representing one of the PaperSize values or a custom value.
Returns: int - int value
getWidth()
public int getWidth()
Gets or sets the width of the paper, in hundredths of an inch.
Returns: int - int value
setHeight(int value)
public void setHeight(int value)
Gets or sets the height of the paper, in hundredths of an inch.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
setPaperName(String value)
public void setPaperName(String value)
Gets the name of the type of paper.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String value |
setWidth(int value)
public void setWidth(int value)
Sets the width of the paper, in hundredths of an inch.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
toString()
public String toString()
Gets the name of this instance.
Returns: java.lang.String - String value