Package com.openhtmltopdf.java2d
Class Java2DOutputDevice
java.lang.Object
com.openhtmltopdf.render.AbstractOutputDevice
com.openhtmltopdf.java2d.Java2DOutputDevice
- All Implemented Interfaces:
com.openhtmltopdf.extend.OutputDevice
public class Java2DOutputDevice
extends com.openhtmltopdf.render.AbstractOutputDevice
implements com.openhtmltopdf.extend.OutputDevice
-
Constructor Summary
Constructors Constructor Description Java2DOutputDevice(Graphics2D layoutGraphics) -
Method Summary
Modifier and Type Method Description voidclip(Shape s)Deprecated.voiddraw(Shape s)voiddrawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)voiddrawImage(com.openhtmltopdf.extend.FSImage image, int x, int y, boolean interpolate)protected voiddrawLine(int x1, int y1, int x2, int y2)voiddrawLinearGradient(com.openhtmltopdf.css.style.derived.FSLinearGradient lg, Shape bounds)voiddrawOval(int x, int y, int width, int height)voiddrawRect(int x, int y, int width, int height)voiddrawSelection(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.InlineText inlineText)Deprecated.voiddrawWithGraphics(float x, float y, float width, float height, com.openhtmltopdf.extend.OutputDeviceGraphicsDrawer renderer)voidendStructure(Object token)voidfill(Shape s)voidfillOval(int x, int y, int width, int height)voidfillRect(int x, int y, int width, int height)voidfinish(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox _root)floatgetAbsoluteTransformOriginX()Deprecated.floatgetAbsoluteTransformOriginY()Deprecated.ShapegetClip()Deprecated.Java2DFontgetFont()Graphics2DgetGraphics()ObjectgetRenderingHint(RenderingHints.Key key)StrokegetStroke()voidinitializePage(Graphics2D pageGraphics)booleanisFastRenderer()booleanisSupportsCMYKColors()booleanisSupportsSelection()Deprecated.voidpaintReplacedElement(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox box)voidpopClip()voidpopTransformLayer()voidpopTransforms(List<AffineTransform> inverse)Deprecated.voidpushClip(Shape s)voidpushTransformLayer(AffineTransform transform)List<AffineTransform>pushTransforms(List<AffineTransform> transforms)Deprecated.voidsetBidiReorderer(com.openhtmltopdf.bidi.BidiReorderer _reorderer)voidsetClip(Shape s)Deprecated.voidsetColor(com.openhtmltopdf.css.parser.FSColor color)voidsetFont(com.openhtmltopdf.render.FSFont font)voidsetPaint(Paint paint)voidsetRenderingContext(com.openhtmltopdf.render.RenderingContext result)voidsetRenderingHint(RenderingHints.Key key, Object value)voidsetRoot(com.openhtmltopdf.render.BlockBox _root)voidsetStroke(Stroke s)ObjectstartStructure(com.openhtmltopdf.extend.StructureType type, com.openhtmltopdf.render.Box box)voidtranslate(double tx, double ty)Methods inherited from class com.openhtmltopdf.render.AbstractOutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, isPDF, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.openhtmltopdf.extend.OutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, isPDF, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
-
Constructor Details
-
Java2DOutputDevice
-
-
Method Details
-
drawSelection
@Deprecated public void drawSelection(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.InlineText inlineText)Deprecated.- Specified by:
drawSelectionin interfacecom.openhtmltopdf.extend.OutputDevice
-
drawBorderLine
- Specified by:
drawBorderLinein interfacecom.openhtmltopdf.extend.OutputDevice
-
paintReplacedElement
public void paintReplacedElement(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox box)- Specified by:
paintReplacedElementin interfacecom.openhtmltopdf.extend.OutputDevice
-
setColor
public void setColor(com.openhtmltopdf.css.parser.FSColor color)- Specified by:
setColorin interfacecom.openhtmltopdf.extend.OutputDevice
-
drawLine
protected void drawLine(int x1, int y1, int x2, int y2)- Specified by:
drawLinein classcom.openhtmltopdf.render.AbstractOutputDevice
-
drawRect
public void drawRect(int x, int y, int width, int height)- Specified by:
drawRectin interfacecom.openhtmltopdf.extend.OutputDevice
-
fillRect
public void fillRect(int x, int y, int width, int height)- Specified by:
fillRectin interfacecom.openhtmltopdf.extend.OutputDevice
-
setClip
Deprecated.- Specified by:
setClipin interfacecom.openhtmltopdf.extend.OutputDevice
-
getClip
Deprecated.- Specified by:
getClipin interfacecom.openhtmltopdf.extend.OutputDevice
-
clip
Deprecated.- Specified by:
clipin interfacecom.openhtmltopdf.extend.OutputDevice
-
translate
public void translate(double tx, double ty)- Specified by:
translatein interfacecom.openhtmltopdf.extend.OutputDevice
-
getGraphics
-
drawOval
public void drawOval(int x, int y, int width, int height)- Specified by:
drawOvalin interfacecom.openhtmltopdf.extend.OutputDevice
-
fillOval
public void fillOval(int x, int y, int width, int height)- Specified by:
fillOvalin interfacecom.openhtmltopdf.extend.OutputDevice
-
getRenderingHint
- Specified by:
getRenderingHintin interfacecom.openhtmltopdf.extend.OutputDevice
-
setRenderingHint
- Specified by:
setRenderingHintin interfacecom.openhtmltopdf.extend.OutputDevice
-
setFont
public void setFont(com.openhtmltopdf.render.FSFont font)- Specified by:
setFontin interfacecom.openhtmltopdf.extend.OutputDevice
-
getFont
-
setStroke
- Specified by:
setStrokein interfacecom.openhtmltopdf.extend.OutputDevice
-
getStroke
- Specified by:
getStrokein interfacecom.openhtmltopdf.extend.OutputDevice
-
fill
- Specified by:
fillin interfacecom.openhtmltopdf.extend.OutputDevice
-
draw
- Specified by:
drawin interfacecom.openhtmltopdf.extend.OutputDevice
-
drawImage
public void drawImage(com.openhtmltopdf.extend.FSImage image, int x, int y, boolean interpolate)- Specified by:
drawImagein interfacecom.openhtmltopdf.extend.OutputDevice
-
isSupportsSelection
Deprecated.- Specified by:
isSupportsSelectionin interfacecom.openhtmltopdf.extend.OutputDevice
-
isSupportsCMYKColors
public boolean isSupportsCMYKColors()- Specified by:
isSupportsCMYKColorsin interfacecom.openhtmltopdf.extend.OutputDevice
-
drawWithGraphics
public void drawWithGraphics(float x, float y, float width, float height, com.openhtmltopdf.extend.OutputDeviceGraphicsDrawer renderer)- Specified by:
drawWithGraphicsin interfacecom.openhtmltopdf.extend.OutputDevice
-
setPaint
- Specified by:
setPaintin interfacecom.openhtmltopdf.extend.OutputDevice
-
pushTransforms
Deprecated.- Specified by:
pushTransformsin interfacecom.openhtmltopdf.extend.OutputDevice
-
popTransforms
Deprecated.- Specified by:
popTransformsin interfacecom.openhtmltopdf.extend.OutputDevice
-
getAbsoluteTransformOriginX
Deprecated.- Specified by:
getAbsoluteTransformOriginXin interfacecom.openhtmltopdf.extend.OutputDevice
-
getAbsoluteTransformOriginY
Deprecated.- Specified by:
getAbsoluteTransformOriginYin interfacecom.openhtmltopdf.extend.OutputDevice
-
setBidiReorderer
public void setBidiReorderer(com.openhtmltopdf.bidi.BidiReorderer _reorderer) -
setRenderingContext
public void setRenderingContext(com.openhtmltopdf.render.RenderingContext result) -
setRoot
public void setRoot(com.openhtmltopdf.render.BlockBox _root) -
initializePage
-
finish
public void finish(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox _root) -
pushTransformLayer
- Specified by:
pushTransformLayerin interfacecom.openhtmltopdf.extend.OutputDevice
-
popTransformLayer
public void popTransformLayer()- Specified by:
popTransformLayerin interfacecom.openhtmltopdf.extend.OutputDevice
-
popClip
public void popClip()- Specified by:
popClipin interfacecom.openhtmltopdf.extend.OutputDevice
-
pushClip
- Specified by:
pushClipin interfacecom.openhtmltopdf.extend.OutputDevice
-
isFastRenderer
public boolean isFastRenderer()- Specified by:
isFastRendererin interfacecom.openhtmltopdf.extend.OutputDevice
-
startStructure
public Object startStructure(com.openhtmltopdf.extend.StructureType type, com.openhtmltopdf.render.Box box)- Specified by:
startStructurein interfacecom.openhtmltopdf.extend.OutputDevice
-
endStructure
- Specified by:
endStructurein interfacecom.openhtmltopdf.extend.OutputDevice
-
drawLinearGradient
public void drawLinearGradient(com.openhtmltopdf.css.style.derived.FSLinearGradient lg, Shape bounds)- Specified by:
drawLinearGradientin interfacecom.openhtmltopdf.extend.OutputDevice
-