|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcuda.jnpp.utilnpp.DefaultSize
public class DefaultSize
Default implementation of a Image.Size
Constructor Summary | |
---|---|
DefaultSize(Image.Size rSize)
Copy constructor |
|
DefaultSize(int nWidthNew,
int nHeightNew)
Creates a new size as specified |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
int |
nHeight()
Returns the height |
int |
nWidth()
Returns the width |
void |
set(Image.Size rSize)
Assignment operator: Set this size to be the same as the given size |
void |
setHeight(int height)
Set the height |
void |
setWidth(int width)
Set the width |
void |
swap(Image.Size rSize)
Swap this size and the given size |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DefaultSize(int nWidthNew, int nHeightNew)
nWidthNew
- The widthnHeightNew
- The heightDefaultSize(Image.Size rSize)
rSize
- The other sizeMethod Detail |
---|
public void set(Image.Size rSize)
Image.Size
set
in interface Image.Size
rSize
- The other sizepublic void setHeight(int height)
Image.Size
setHeight
in interface Image.Size
height
- The heightpublic void setWidth(int width)
Image.Size
setWidth
in interface Image.Size
width
- The widthpublic void swap(Image.Size rSize)
Image.Size
swap
in interface Image.Size
rSize
- The other sizepublic int nWidth()
Image.Size
nWidth
in interface Image.Size
public int nHeight()
Image.Size
nHeight
in interface Image.Size
public int hashCode()
hashCode
in interface Image.Size
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in interface Image.Size
equals
in class java.lang.Object
Object.equals(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |