软件包 | 描述 |
---|---|
javax.print |
提供了主要的类和接口的java
TM打印服务API。
|
javax.print.attribute |
提供类和接口描述java
TM打印服务属性的类型以及如何将它们收集到的属性集。
|
javax.print.attribute.standard |
包装印刷类javax.print.attribute.standard包含特定属性。
|
Modifier and Type | Method and Description |
---|---|
Attribute[] |
AttributeException.getUnsupportedValues()
返回打印服务实例支持该属性的打印属性的数组,但不支持该属性的特定值,或者如果没有这样的属性值,或为空。
|
Modifier and Type | Method and Description |
---|---|
boolean |
PrintService.isAttributeValueSupported(Attribute attrval, DocFlavor flavor, AttributeSet attributes)
确定在设置此打印服务的作业时,客户端是否可以指定给定的打印属性值。
|
Modifier and Type | Method and Description |
---|---|
Object |
PrintService.getDefaultAttributeValue(类<? extends Attribute> category)
确定在给定类别中的该打印服务的默认打印属性值。
|
Object |
PrintService.getSupportedAttributeValues(类<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes)
确定在为该打印服务设置一个作业时,客户端可以在指定类别中指定的打印属性值。
|
boolean |
PrintService.isAttributeCategorySupported(类<? extends Attribute> category)
确定是否在为该打印服务设置一个作业时,客户端是否可以指定给定的打印属性类别。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DocAttribute
接口是一个标记接口,docattribute打印属性类实现了显示属性表示一个文档设置。
|
interface |
PrintJobAttribute
printjobattribute是一个标记接口,打印属性类实现了显示属性描述一个打印作业的打印作业或其他一些特性的状态。
|
interface |
PrintRequestAttribute
接口是一个标记接口,printrequestattribute打印属性类实现了显示属性表示要求打印作业设置。
|
interface |
PrintServiceAttribute
接口是一个标记接口,printserviceattribute打印属性类实现了显示属性描述的打印服务和打印服务的其他一些特性的状态。
|
interface |
SupportedValuesAttribute
接口是一个标记接口,supportedvaluesattribute打印属性类实现了显示属性描述了支持另一个属性的值。
|
Modifier and Type | Method and Description |
---|---|
Attribute |
HashAttributeSet.get(类<?> category)
返回此属性集包含的属性值在给定的属性类别中的属性值。
|
Attribute |
AttributeSet.get(类<?> category)
返回此属性集包含的属性值在给定的属性类别中的属性值。
|
Attribute[] |
HashAttributeSet.toArray() |
Attribute[] |
AttributeSet.toArray()
返回此集合中包含的属性的数组。
|
static Attribute |
AttributeSetUtilities.verifyAttributeValue(Object object, 类<?> interfaceName)
验证给定的对象是一个给定的接口,这是接口
Attribute 或接口方法。
|
Modifier and Type | Method and Description |
---|---|
类<? extends Attribute> |
Attribute.getCategory()
获取要将其添加到属性集时作为该打印属性值的“类别”的打印属性类。
|
Modifier and Type | Method and Description |
---|---|
boolean |
PrintJobAttributeSet.add(Attribute attribute)
如果没有已存在,则将指定的属性值添加到该属性集上,首先将在同一属性类别中的任何现有值作为指定的属性值(可选操作)。
|
boolean |
DocAttributeSet.add(Attribute attribute)
如果没有已存在,则将指定的属性值添加到该属性集上,首先将在同一属性类别中的任何现有值作为指定的属性值(可选操作)。
|
boolean |
HashAttributeSet.add(Attribute attribute)
如果没有已存在,则将指定的属性添加到该属性集中,首先将属性类别中的任何现有的属性设置为指定的属性值。
|
boolean |
PrintServiceAttributeSet.add(Attribute attribute)
如果没有已存在,则将指定的属性值添加到该属性集上,首先将在同一属性类别中的任何现有值作为指定的属性值(可选操作)。
|
boolean |
PrintRequestAttributeSet.add(Attribute attribute)
如果没有已存在,则将指定的属性值添加到该属性集上,首先将在同一属性类别中的任何现有值作为指定的属性值(可选操作)。
|
boolean |
AttributeSet.add(Attribute attribute)
如果没有已存在,则将指定的属性添加到该属性集中,首先将在同一属性类别中的任何现有值作为指定的属性值。
|
boolean |
HashAttributeSet.containsValue(Attribute attribute)
如果此属性设置
true返回包含给定属性。
|
boolean |
AttributeSet.containsValue(Attribute attribute)
如果此属性设置
true返回包含给定属性值。
|
boolean |
HashAttributeSet.remove(Attribute attribute)
如果存在的话,从该属性集中移除指定的属性。
|
boolean |
AttributeSet.remove(Attribute attribute)
如果存在的话,从该属性集中移除指定的属性。
|
static void |
AttributeSetUtilities.verifyCategoryForValue(类<?> category, Attribute attribute)
验证给定的属性类别对象等于给定属性值对象的类别。
|
Constructor and Description |
---|
HashAttributeSet(Attribute attribute)
构造一个新的属性集,最初填充给定的属性。
|
HashAttributeSet(Attribute[] attributes)
构造一个新的属性集,最初填充给定数组的值。
|
HashAttributeSet(Attribute[] attributes, 类<?> interfaceName)
构造一个新的属性集,属性集的成员仅限于给定的接口。
|
HashAttributeSet(Attribute attribute, 类<?> interfaceName)
构造一个新的属性集,最初填充了给定的属性,属性集的成员被限制在给定的接口。
|
Modifier and Type | Method and Description |
---|---|
类<? extends Attribute> |
DateTimeAtCompleted.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterIsAcceptingJobs.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
MultipleDocumentHandling.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobPriority.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Severity.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
ColorSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobState.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterLocation.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PagesPerMinuteColor.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobOriginatingUserName.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterInfo.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobKOctetsSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Compression.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterName.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobMediaSheetsSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterStateReasons.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobMediaSheets.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Copies.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
MediaPrintableArea.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
ReferenceUriSchemesSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
NumberUp.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
CopiesSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterMessageFromOperator.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
DateTimeAtProcessing.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobHoldUntil.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterMakeAndModel.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterURI.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobMediaSheetsCompleted.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobImpressionsSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobMessageFromOperator.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
RequestingUserName.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PDLOverrideSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterState.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterMoreInfo.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobKOctets.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobStateReasons.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
SheetCollate.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobPrioritySupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrintQuality.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
NumberOfInterveningJobs.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobName.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
DateTimeAtCreation.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterResolution.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobImpressionsCompleted.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PresentationDirection.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PagesPerMinute.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobSheets.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
QueuedJobCount.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Destination.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Chromaticity.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
OrientationRequested.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobStateReason.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Fidelity.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
DocumentName.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
NumberOfDocuments.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
MediaSize.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Sides.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobKOctetsProcessed.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Finishings.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
OutputDeviceAssigned.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
NumberUpSupported.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PageRanges.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
Media.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterMoreInfoManufacturer.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
PrinterStateReason.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
类<? extends Attribute> |
JobImpressions.getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.