|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.coobird.thumbnailator.resizers.FixedResizerFactory
public class FixedResizerFactory
A ResizerFactory
that returns a specific Resizer
unconditionally.
Constructor Summary | |
---|---|
FixedResizerFactory(Resizer resizer)
Creates an instance of the FixedResizerFactory which returns
the speicifed Resizer under all circumstances. |
Method Summary | |
---|---|
Resizer |
getResizer()
Returns the default Resizer . |
Resizer |
getResizer(Dimension originalSize,
Dimension thumbnailSize)
Returns a suitable Resizer , given the Dimension s of the
original image and the thumbnail image. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedResizerFactory(Resizer resizer)
FixedResizerFactory
which returns
the speicifed Resizer
under all circumstances.
resizer
- The Resizer
instance that is to be returned
under all circumstances.Method Detail |
---|
public Resizer getResizer()
ResizerFactory
Resizer
.
getResizer
in interface ResizerFactory
Resizer
.public Resizer getResizer(Dimension originalSize, Dimension thumbnailSize)
ResizerFactory
Resizer
, given the Dimension
s of the
original image and the thumbnail image.
getResizer
in interface ResizerFactory
originalSize
- The size of the original image.thumbnailSize
- The size of the thumbnail.
Resizer
to perform the
resizing operation for the given condition.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |