|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.model.DocumentModelInfo
public class DocumentModelInfo
An utility class used to extract statistics from a page or a page segment.
Method Summary | |
---|---|
static DocumentModelInfo |
get(Page page)
Return the model information for the given page. |
static DocumentModelInfo |
get(PageSegment ps)
Return the model information for the given page segment. |
Resolution |
getMaximumImageResolution()
Returns the highest resolution of all images contained in the referenced page or page segment. |
Resolution |
getMinimumImageResolution()
Returns the lowest resolution of all images contained in the referenced page or page segment. |
int |
getNumberOfImages()
Returns the number of images contained in the referenced page or page segment. |
List<Rectangle2D> |
getTranslucentRegions()
Returns an unmodifiable list of translucent regions within the referenced page or page segment. |
List<Rectangle2D> |
getTransparentRegions()
Returns an unmodifiable list of transparent regions within the referenced page or page segment. |
boolean |
isColored()
Returns whether the referenced page or page segment contains any colored elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentModelInfo get(PageSegment ps)
ps
- the page segment
public static DocumentModelInfo get(Page page)
page
- the page
public int getNumberOfImages()
public Resolution getMaximumImageResolution()
null
if no images are contained in the
referenced page or page segment.public Resolution getMinimumImageResolution()
null
if no images are contained in the referenced
page or page segment.public List<Rectangle2D> getTransparentRegions()
public List<Rectangle2D> getTranslucentRegions()
public boolean isColored()
false
if the referenced page or page segment solely contains white or black
colored elements, otherwise true
will be returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |