Back to project page AndroidImageCache.
The source code is released under:
Przemys?aw Jakubczyk Polidea Sp. z o.o. Copyright (c) 2012 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
If you think the Android project AndroidImageCache listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.polidea.webimageview.processor; /*from ww w .jav a 2s. c om*/ import pl.polidea.utils.Dimensions; /** * @author Mateusz Grzechoci?ski <mateusz.grzechocinski@pl.polidea.pl> */ class ProgramaticallyCreated extends AbstractBitmapProcessorCreationChain { private final Dimensions dimensions; public ProgramaticallyCreated(Dimensions dimensions) { this.dimensions = dimensions; } public AbstractBitmapProcessorCreationChain next(){ return new BothWidthAndHeightNotFixed(dimensions); } @Override protected Processor create() { if (dimensions == null) { return new Processor(Processor.ProcessorType.ORIGNAL); } return NOT_CREATED_PROCESSOR; } }