|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 Dimensions 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()
ResizerFactoryResizer.
getResizer in interface ResizerFactoryResizer.
public Resizer getResizer(Dimension originalSize,
Dimension thumbnailSize)
ResizerFactoryResizer, given the Dimensions of the
original image and the thumbnail image.
getResizer in interface ResizerFactoryoriginalSize - 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 | ||||||||