com.atlassian.confluence.content.render.image
Class SimpleImageRenderPredicate

java.lang.Object
  extended by com.atlassian.confluence.content.render.image.SimpleImageRenderPredicate
All Implemented Interfaces:
com.google.common.base.Predicate<ImageDimensions>

public final class SimpleImageRenderPredicate
extends java.lang.Object
implements com.google.common.base.Predicate<ImageDimensions>

A predicate that decides whether or not an image stream should be rendered as a raster, depending on the size of the resulting raster.


Constructor Summary
SimpleImageRenderPredicate(int rasterSizeThresholdPx)
           
 
Method Summary
 boolean apply(ImageDimensions input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

SimpleImageRenderPredicate

public SimpleImageRenderPredicate(int rasterSizeThresholdPx)
Method Detail

apply

public boolean apply(@Nullable
                     ImageDimensions input)
Specified by:
apply in interface com.google.common.base.Predicate<ImageDimensions>


Copyright © 2003-2014 Atlassian. All Rights Reserved.