boolean |
equals(java.lang.Object obj)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Resolution
public Resolution(float dpix,
float dpiy,
int mode)
Initialize an instance of ResolutionResolution .
- Parameters:
dpix - The horizontal resolution.dpiy - The vertical resolution.mode - The ResolutionModeResolutionMode .
equals
public boolean equals(java.lang.Object obj)
Determines whether two ResolutionResolution instances are equal.
- Overrides:
equals in class java.lang.Object
- Parameters:
obj - The ResolutionResolution instance on the left
- Returns:
<b>true</b> if the left ResolutionResolution instances is equal to the right one; otherwise, <b>false</b> .
getDpiX
Gets the horizontal resolution
- Throws:
ArgumentException - <p>The <b>DpiX</b> parameter value is less than 0.</p>
getDpiY
public float getDpiY()
Gets the vertical resolution
- Throws:
ArgumentException - <p>The <b>DpiY</b> parameter value is less than 0.</p>
getMode
public int getMode()
Gets the ResolutionModemode of the resolution
hashCode
public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
- Overrides:
hashCode in class java.lang.Object
- Returns:
- A hash code for the current Object.
op_Equality
public static boolean op_Equality(Resolution left,
Resolution right)
Determines whether two ResolutionResolution instances are equal.
- Parameters:
left - The ResolutionResolution instance on the leftright - The ResolutionResolution instance on the right
- Returns:
<b>true</b> if the left ResolutionResolution instances is equal to the right one; otherwise, <b>false</b> .
op_Inequality
public static boolean op_Inequality(Resolution left,
Resolution right)
Determines whether two ResolutionResolution instances are not equal.
- Parameters:
left - The ResolutionResolution instance on the leftright - The ResolutionResolution instance on the right
- Returns:
<b>false</b> if the left ResolutionResolution instances is equal to the right one; otherwise, <b>true</b> .
setDpiX
setDpiY
public void setDpiY(float value)
Sets the vertical resolution
- Throws:
ArgumentException - <p>The <b>DpiY</b> parameter value is less than 0.</p>
setMode
public void setMode(int value)
Sets the ResolutionModemode of the resolution
toString
public java.lang.String toString()
Returns a String that represents the current ResolutionResolution instance.
- Overrides:
toString in class java.lang.Object
- Returns:
- A
System.StringString that represents the current Object.
|