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