|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.coobird.thumbnailator.geometry.AbsoluteSize
public class AbsoluteSize
A Size
object which indicates that the size of the enclosed object
should be the specified absolute size.
Constructor Summary | |
---|---|
AbsoluteSize(Dimension size)
Instantiates an object which indicates size of an object. |
|
AbsoluteSize(int width,
int height)
Instantiates an object which indicates size of an object. |
Method Summary | |
---|---|
Dimension |
calculate(int width,
int height)
Calculates the size of the object. |
String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbsoluteSize(Dimension size)
size
- Size of the enclosed object.
NullPointerException
- If the size is null
.public AbsoluteSize(int width, int height)
width
- Width of the enclosed object.height
- Height of the enclosed object.
IllegalArgumentException
- If the width and/or height is less
than or equal to 0
.Method Detail |
---|
public Dimension calculate(int width, int height)
Size
calculate
in interface Size
width
- Width of the object which encloses the object
for which the size should be determined.height
- Height of the object which encloses the object
for which the size should be determined.
public String toString()
String
representation of this object.
toString
in class Object
String
representation of this object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |