Class ScaledImage
- java.lang.Object
-
- com.norconex.collector.http.processor.impl.ScaledImage
-
public class ScaledImage extends Object
-
-
Constructor Summary
Constructors Constructor Description ScaledImage(String url, Dimension originalSize, BufferedImage image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(int width, int height)booleancontains(ScaledImage img)booleancontains(Dimension dim)booleanfits(int width, int height)booleanfits(ScaledImage img)booleanfits(Dimension dim)longgetArea()BufferedImagegetImage()DimensiongetOriginalSize()StringgetUrl()StringtoHTMLInlineString(String format)
-
-
-
Constructor Detail
-
ScaledImage
public ScaledImage(String url, Dimension originalSize, BufferedImage image)
-
-
Method Detail
-
getOriginalSize
public Dimension getOriginalSize()
-
getImage
public BufferedImage getImage()
-
getUrl
public String getUrl()
-
contains
public boolean contains(ScaledImage img)
-
contains
public boolean contains(Dimension dim)
-
contains
public boolean contains(int width, int height)
-
fits
public boolean fits(ScaledImage img)
-
fits
public boolean fits(Dimension dim)
-
fits
public boolean fits(int width, int height)
-
getArea
public long getArea()
-
toHTMLInlineString
public String toHTMLInlineString(String format) throws IOException
- Throws:
IOException
-
-