01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.print;
19:
20: import javax.print.attribute.Attribute;
21: import javax.print.attribute.AttributeSet;
22: import javax.print.attribute.PrintServiceAttribute;
23: import javax.print.attribute.PrintServiceAttributeSet;
24: import javax.print.event.PrintServiceAttributeListener;
25:
26: public interface PrintService {
27: void addPrintServiceAttributeListener(
28: PrintServiceAttributeListener listener);
29:
30: DocPrintJob createPrintJob();
31:
32: boolean equals(Object object);
33:
34: <T extends PrintServiceAttribute> T getAttribute(Class<T> category);
35:
36: PrintServiceAttributeSet getAttributes();
37:
38: Object getDefaultAttributeValue(Class<? extends Attribute> category);
39:
40: String getName();
41:
42: ServiceUIFactory getServiceUIFactory();
43:
44: Class<?>[] getSupportedAttributeCategories();
45:
46: Object getSupportedAttributeValues(
47: Class<? extends Attribute> category, DocFlavor flavor,
48: AttributeSet attributes);
49:
50: DocFlavor[] getSupportedDocFlavors();
51:
52: AttributeSet getUnsupportedAttributes(DocFlavor flavor,
53: AttributeSet attributes);
54:
55: int hashCode();
56:
57: boolean isAttributeCategorySupported(
58: Class<? extends Attribute> category);
59:
60: boolean isAttributeValueSupported(Attribute attrval,
61: DocFlavor flavor, AttributeSet attributes);
62:
63: boolean isDocFlavorSupported(DocFlavor flavor);
64:
65: void removePrintServiceAttributeListener(
66: PrintServiceAttributeListener listener);
67: }
|