@OpenApiAll public class XLSXFormatter extends DefaultFormatter
dpi, properties, styledDocument
DOT_PER_INCH
Constructor and Description |
---|
XLSXFormatter(ITemplateEngine templateEngine)
Create a XLSX formatter with specific properties.
|
XLSXFormatter(java.util.Properties properties)
Create a XLSX formatter with specific properties.
|
Modifier and Type | Method and Description |
---|---|
protected float[] |
adjustImage(float w,
float h,
int flag)
Returns [imageWidth, imageHeight, imageRotate] the image will be rotated if necessary 914,400 EMU per inch
12,700 EMU in a point360,000 EMU per cm.
|
protected ITool.RetainedString |
createBookmark(Bookmark bookmark)
Create a XLSX bookmark string from given
Bookmark object. |
protected java.lang.String |
createColumn(Column column)
Increase new columns from given
Column object. |
protected java.lang.String |
createGridRowSpan(GridRowSpan span)
Create a XLSX gridrowspan (merge columns vertically) string from given
GridRowSpan object. |
protected java.lang.String |
createGridSpan(GridSpan span)
Create a XLSX gridspan (merge columns horizontally) string from given
GridSpan object. |
protected ITool.RetainedString |
createImage(Image image)
Create a DOCX image string from given
Image object. |
protected ITool.RetainedString |
createImage(Image image,
float width,
float height,
int flag)
Create a DOCX image string from given
Image object. |
protected ITool.RetainedString |
createLink(Link link)
Create a XLSX link string from given
Link object. |
java.lang.Object |
format(java.lang.Object value)
Convert an Object value into HTML format.
|
float[] |
getPageSize()
Get pageSize in Inches.
|
getImageFlag, getObjectFormater, getProperties, registerObjectFormatter, setProperties, setStyledDocument, writeImage, writeImage
public XLSXFormatter(ITemplateEngine templateEngine)
templateEngine
- template enginepublic XLSXFormatter(java.util.Properties properties)
properties
- template propertiespublic java.lang.Object format(java.lang.Object value)
format
in interface IFormatter
format
in class DefaultFormatter
value
- converting valueprotected ITool.RetainedString createImage(Image image) throws java.io.IOException
Image
object.image
- an Image
objectjava.io.IOException
- when IO error occursprotected ITool.RetainedString createImage(Image image, float width, float height, int flag) throws java.io.IOException
Image
object.image
- an Image
objectwidth
- the target image widthheight
- the target image heightflag
- scaling image flagjava.io.IOException
- when IO error occurspublic float[] getPageSize()
protected float[] adjustImage(float w, float h, int flag)
w
- image widthh
- image heightflag
- scaling image flagprotected ITool.RetainedString createBookmark(Bookmark bookmark) throws java.io.IOException
Bookmark
object.bookmark
- an Bookmark
objectjava.io.IOException
- when IO error occursprotected ITool.RetainedString createLink(Link link) throws java.io.IOException
Link
object.link
- an Link
objectjava.io.IOException
- when IO error occursprotected java.lang.String createGridSpan(GridSpan span)
GridSpan
object.span
- an GridSpan
objectprotected java.lang.String createColumn(Column column)
Column
object.column
- an Column
objectprotected java.lang.String createGridRowSpan(GridRowSpan span)
GridRowSpan
object.span
- an GridRowSpan
objectCopyright © 2010 - No Magic Asia