public class PictureRunMapper
extends java.lang.Object
Constructor and Description |
---|
PictureRunMapper(HWPFDocument doc) |
Modifier and Type | Method and Description |
---|---|
Picture |
getFor(CharacterRun cr)
Get the Picture for this run, if any
|
boolean |
hasBeenClaimed(Picture picture)
Has the given Picture been claimed by a non-Run yet?
|
boolean |
hasPicture(CharacterRun cr)
Does this run have a Picture in it?
|
void |
markAsClaimed(Picture picture)
Mark a Picture as claimed.
|
Picture |
nextUnclaimed()
Return the next unclaimed one, used towards
the end
|
int |
pictureNumber(Picture picture)
Which Picture is this one of all the Pictures in
the Document?
Useful when trying to extract all Pictures with
unique numbers or references
|
public PictureRunMapper(HWPFDocument doc)
public boolean hasPicture(CharacterRun cr)
getFor(CharacterRun)
public Picture getFor(CharacterRun cr)
public void markAsClaimed(Picture picture)
public boolean hasBeenClaimed(Picture picture)
public int pictureNumber(Picture picture)
public Picture nextUnclaimed()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.