public final class PrintResolution
extends java.lang.Object
Constructor and Description |
---|
PrintResolution(int crossFeedResolution,
int feedResolution)
Represents the dots-per-inch (DPI) resolution of a printer device.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getCrossFeedResolution()
Returns the resolution in dpi.
|
int |
getFeedResolution()
Returns the resolution in dpi.
|
int |
hashCode() |
java.lang.String |
toString() |
PrintResolution(int crossFeedResolution, int feedResolution) throws java.lang.IllegalArgumentException
crossFeedResolution
- - resolution across the paper feed direction.feedResolution
- - resolution in the paper feed direction.java.lang.IllegalArgumentException
- if the values are not greater
than zero.public int getCrossFeedResolution()
public int getFeedResolution()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object