|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.zuercher.gpx2map.util.Dimension
public class Dimension
Dimension represents the dimensions of an image.
Field Summary | |
---|---|
private int |
height
Image height. |
private int |
width
Image width. |
Constructor Summary | |
---|---|
Dimension(int width,
int height)
Constructs a new Dimension object with the given width and height. |
Method Summary | |
---|---|
boolean |
equals(Dimension other)
Tests whether this Dimension is equal to another. |
boolean |
equals(Object other)
Tests whether this Dimension is equal to another. |
int |
getHeight()
Returns the image's height. |
int |
getWidth()
Returns the image's width. |
int |
hashCode()
Computes a reasonable hash code for this Dimension. |
String |
toString()
Returns a string representing a Dimension of the format "[w]x[h]". |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int width
private final int height
Constructor Detail |
---|
public Dimension(int width, int height)
width
- image widthheight
- image heightMethod Detail |
---|
public int getWidth()
public int getHeight()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Dimension other)
other
- another Dimension
public boolean equals(Object other)
equals
in class Object
other
- another Dimension
ClassCastException
- if other
is not a
Dimension
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |