public class XHTMLImageHandlerDefault extends Object implements XHTMLImageHandler
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage> |
imagePartCache |
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
XHTMLImageHandlerDefault(XHTMLImporterImpl importer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addImage(org.docx4j.org.xhtmlrenderer.docx.Docx4jUserAgent docx4jUserAgent,
org.docx4j.openpackaging.packages.WordprocessingMLPackage wordMLPackage,
org.docx4j.wml.P p,
Element e,
Long cx,
Long cy) |
int |
getMaxWidth() |
void |
setMaxWidth(int maxWidth) |
void |
setMaxWidth(int maxWidth,
String tableStyle)
Set the maximum width available (in twips); useful for scaling bare images
if they are to go in a table cell.
|
public XHTMLImageHandlerDefault(XHTMLImporterImpl importer)
public int getMaxWidth()
public void setMaxWidth(int maxWidth,
String tableStyle)
XHTMLImageHandlersetMaxWidth in interface XHTMLImageHandlertableStyle - - can be nullpublic void setMaxWidth(int maxWidth)
public void addImage(org.docx4j.org.xhtmlrenderer.docx.Docx4jUserAgent docx4jUserAgent,
org.docx4j.openpackaging.packages.WordprocessingMLPackage wordMLPackage,
org.docx4j.wml.P p,
Element e,
Long cx,
Long cy)
addImage in interface XHTMLImageHandlerdocx4jUserAgent - wordMLPackage - p - e - cx - width of image itself (ie excluding CSS margin, padding) in EMUcy - Copyright © 2013-2018. All Rights Reserved.