public class ODFFormatterWrapper extends ODFFormatter implements IFormatterWrapper
dpi, properties, styledDocument
DOT_PER_INCH
Constructor and Description |
---|
ODFFormatterWrapper(ITemplateEngine engine)
Create a ODF formatter with with specific engine.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds(ITool.RetainedString imageContent)
Return the image bounds from RTF image content.
|
java.awt.Rectangle |
getPaperBounds(int dpi)
Return the size of paper bounds.
|
Image |
rotateImage(Image image,
int degrees)
Rotates an image by a specific angle.
|
Image |
rotateImage(Image image,
int degrees,
boolean bestQualityOrVecter)
Rotates an image by a specific angle.
|
java.lang.String |
rotateLeft()
Return the image property for rotating image to left.
|
java.lang.String |
rotateRight()
Return the image property for rotating image to right.
|
Image |
scale(Image image,
double sx,
double sy)
Return the RTF content of transformed image.
|
adjustImage, createBookmark, createImage, createImage, createLink, format, getPageSize, isLargeImage
getImageFlag, getObjectFormater, getProperties, registerObjectFormatter, setProperties, setStyledDocument, writeImage, writeImage
public ODFFormatterWrapper(ITemplateEngine engine)
engine
- template enginepublic java.lang.String rotateLeft()
public java.lang.String rotateRight()
public Image rotateImage(Image image, int degrees, boolean bestQualityOrVecter)
IFormatterWrapper
rotateImage
in interface IFormatterWrapper
image
- the image to be rotateddegrees
- the angle of rotation can be positive or negativebestQualityOrVecter
- to check best quality or vector imagepublic Image rotateImage(Image image, int degrees)
rotateImage
in interface IFormatterWrapper
image
- the image to be rotateddegrees
- the angle of rotation can be positive or negativepublic Image scale(Image image, double sx, double sy)
scale
in interface IFormatterWrapper
image
- report imagesx
- the amount by which X coordinates in subsequent rendering operations are multiplied relative to
previous rendering operations.sy
- the amount by which Y coordinates in subsequent rendering operations are multiplied relative to
previous rendering operations.public java.awt.Rectangle getBounds(ITool.RetainedString imageContent)
getBounds
in interface IFormatterWrapper
imageContent
- content of imagepublic java.awt.Rectangle getPaperBounds(int dpi)
getPaperBounds
in interface IFormatterWrapper
dpi
- DPI valueCopyright © 2010 - No Magic Asia