public class PrinterResolution
extends java.lang.Object
| Constructor and Description |
|---|
PrinterResolution(int crossFeedDirection,
int feedDirection,
PrintQuality printQuality)
Instantiates a new Printer resolution.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCrossFeedDirection()
Gets cross feed direction.
|
int |
getFeedDirection()
Gets feed direction.
|
PrintQuality |
getPrintQuality()
Gets print quality.
|
static PrinterResolution |
of(int crossFeed,
int feed,
PrintQuality quality)
Returns a
PrinterResolution with the given value |
byte[] |
toByteArray()
Creates a byte array of 9 bytes with the resolutions and quality as
described in RFC-2910 (chapter 3.9).
|
java.lang.String |
toString() |
public PrinterResolution(int crossFeedDirection,
int feedDirection,
PrintQuality printQuality)
crossFeedDirection - the cross feed directionfeedDirection - the feed directionprintQuality - the print qualitypublic static PrinterResolution of(int crossFeed, int feed, PrintQuality quality)
PrinterResolution with the given valuecrossFeed - the cross feed directionfeed - the feed directionquality - the printer qualitypublic int getCrossFeedDirection()
public int getFeedDirection()
public PrintQuality getPrintQuality()
public byte[] toByteArray()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018–2020. All rights reserved.