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 boolean
contains(int width, int height)
boolean
contains(ScaledImage img)
boolean
contains(Dimension dim)
boolean
fits(int width, int height)
boolean
fits(ScaledImage img)
boolean
fits(Dimension dim)
long
getArea()
BufferedImage
getImage()
Dimension
getOriginalSize()
String
getUrl()
String
toHTMLInlineString(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
-
-