DocumentPrintAttributeSet
Inheritance: java.lang.Object, javax.print.attribute.HashAttributeSet
public final class DocumentPrintAttributeSet extends HashAttributeSet
Represents helper class with user-friednly interface to with AttributeSet.
Constructors
| Constructor | Description |
|---|---|
| DocumentPrintAttributeSet(int copies) | एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। |
| DocumentPrintAttributeSet(String printerName, int copies) | एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। |
| DocumentPrintAttributeSet(String printerName) | एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। |
| DocumentPrintAttributeSet() | एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। |
Methods
| Method | Description |
|---|---|
| getCopies() | |
| getLandscape() | |
| getPrinterName() | |
| setCollate(boolean value) | एक मान सेट करता है जो दर्शाता है कि दस्तावेज़ क्रमबद्ध है या नहीं। |
| setCopies(int value) | छापे जाने वाली प्रतियों की संख्या सेट करता है। |
| setDuplex(boolean value) | डबल-साइड प्रिंटिंग के लिए प्रिंटर सेटिंग सेट करता है। |
| setLandscape(boolean value) | पृष्ठ की अभिविन्यास सेट करता है। |
| setPrintRange(int page) | छापे जाने वाले एकल पृष्ठ को सेट करता है। |
| setPrintRange(int from, int to) | छापे जाने वाली पृष्ठ सीमा सेट करता है। |
| setPrinterName(String printerName) | उपयोग किए जाने वाले प्रिंटर का नाम। |
| setPrinterName(String printerName, Locale locale) | उपयोग किए जाने वाले प्रिंटर का नाम। |
DocumentPrintAttributeSet(int copies)
public DocumentPrintAttributeSet(int copies)
एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। डिफ़ॉल्ट रूप से दस्तावेज़ के सभी पृष्ठ प्रिंट होते हैं।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| प्रतियां | int | प्रिंट किए जाने वाले दस्तावेज़ की प्रतियों की संख्या। |
DocumentPrintAttributeSet(String printerName, int copies)
public DocumentPrintAttributeSet(String printerName, int copies)
एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। डिफ़ॉल्ट रूप से दस्तावेज़ के सभी पृष्ठ प्रिंट होते हैं।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| printerName | java.lang.String | प्रिंटर का नाम। |
| प्रतियां | int | प्रिंट किए जाने वाले दस्तावेज़ की प्रतियों की संख्या। |
DocumentPrintAttributeSet(String printerName)
public DocumentPrintAttributeSet(String printerName)
एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। डिफ़ॉल्ट रूप से प्रत्येक पृष्ठ की केवल एक ही प्रतिलिपि होती है।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| printerName | java.lang.String | प्रिंटर का नाम। |
DocumentPrintAttributeSet()
public DocumentPrintAttributeSet()
एक नया DocumentPrintAttributeSet उदाहरण प्रारंभ करता है। डिफ़ॉल्ट रूप से प्रत्येक पृष्ठ की केवल एक ही प्रतिलिपि होती है।
getCopies()
public int getCopies()
Returns: int
getLandscape()
public boolean getLandscape()
Returns: boolean
getPrinterName()
public String getPrinterName()
Returns: java.lang.String
setCollate(boolean value)
public void setCollate(boolean value)
एक मान सेट करता है जो दर्शाता है कि दस्तावेज़ क्रमबद्ध है या नहीं।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | true SheetCollate.COLLATED सेटिंग के बराबर है, false SheetCollate.UNCOLLATED सेटिंग के बराबर है। |
setCopies(int value)
public void setCopies(int value)
छापे जाने वाली प्रतियों की संख्या सेट करता है।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | प्रिंट की जाने वाली प्रतियों की संख्या। |
setDuplex(boolean value)
public void setDuplex(boolean value)
डबल-साइड प्रिंटिंग के लिए प्रिंटर सेटिंग सेट करता है।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | true Sides.DUPLEX सेटिंग के बराबर है, false Sides.ONE\_SIDED सेटिंग के बराबर है। |
setLandscape(boolean value)
public void setLandscape(boolean value)
पृष्ठ की अभिविन्यास सेट करता है।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | true OrientationRequested.LANDSCAPE सेटिंग के बराबर है, false OrientationRequested.PORTRAIT सेटिंग के बराबर है। |
setPrintRange(int page)
public void setPrintRange(int page)
छापे जाने वाले एकल पृष्ठ को सेट करता है।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| page | int | प्रिंट किया जाने वाला पृष्ठ। |
setPrintRange(int from, int to)
public void setPrintRange(int from, int to)
छापे जाने वाली पृष्ठ सीमा सेट करता है।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| से | int | पहला पृष्ठ। |
| तक | int | अंतिम पृष्ठ। |
setPrinterName(String printerName)
public void setPrinterName(String printerName)
उपयोग किए जाने वाले प्रिंटर का नाम।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| printerName | java.lang.String | प्रिंटर का नाम। |
setPrinterName(String printerName, Locale locale)
public void setPrinterName(String printerName, Locale locale)
उपयोग किए जाने वाले प्रिंटर का नाम।
Parameters:
| Parameter | Type | Description |
|---|---|---|
| printerName | java.lang.String | प्रिंटर का नाम। |
| स्थानीय | java.util.Locale | printerName का स्थानीय सेटिंग। |