public class NativeDimension
extends java.lang.Object
implements java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
int |
height
Area height.
|
int |
width
Area width.
|
| Constructor and Description |
|---|
NativeDimension()
Default constructor.
|
NativeDimension(int width,
int height)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NativeDimension |
copy()
Create a copy of this dimension object.
|
boolean |
equals(java.lang.Object o)
Checks whether
o represents a NativeDimension with same values. |
int |
hashCode()
Returns a hash code value for the object.
|
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
public NativeDimension()
public NativeDimension(int width,
int height)
width - Area width.height - Area height.public NativeDimension copy()
public boolean equals(java.lang.Object o)
o represents a NativeDimension with same values.equals in class java.lang.Objecto - Another object to test for equality.true if the object passed in represents a NativeDimension with same
values for height and width.public int hashCode()
Object.hashCode() for further
information.hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to write the object tojava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - the stream to read data from in order to restore the objectjava.io.IOExceptionjava.lang.ClassNotFoundException