Package com.openhtmltopdf.extend
Interface OutputDevice
-
- All Known Implementing Classes:
AbstractOutputDevice
public interface OutputDevice
-
-
Method Summary
Modifier and Type Method Description voidclip(Shape s)Deprecated.voiddraw(Shape s)voiddrawBorderLine(Shape bounds, int side, int width, boolean solid)voiddrawDebugOutline(RenderingContext c, Box box, FSColor color)voiddrawImage(FSImage image, int x, int y, boolean interpolate)voiddrawOval(int x, int y, int width, int height)voiddrawRect(int x, int y, int width, int height)voiddrawSelection(RenderingContext c, InlineText inlineText)voiddrawText(RenderingContext c, InlineText inlineText)voiddrawTextDecoration(RenderingContext c, InlineLayoutBox iB, TextDecoration decoration)voiddrawTextDecoration(RenderingContext c, LineBox lineBox)voiddrawWithGraphics(float x, float y, float width, float height, OutputDeviceGraphicsDrawer renderer)Draw something using a Graphics2D at the given rectangle.voidendStructure(Object token)voidfill(Shape s)voidfillOval(int x, int y, int width, int height)voidfillRect(int x, int y, int width, int height)floatgetAbsoluteTransformOriginX()Deprecated.floatgetAbsoluteTransformOriginY()Deprecated.ShapegetClip()Deprecated.ObjectgetRenderingHint(RenderingHints.Key key)StrokegetStroke()booleanisFastRenderer()The new (2018) fast renderer is in use.booleanisPDF()booleanisSupportsCMYKColors()booleanisSupportsSelection()Deprecated.voidpaintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border)voidpaintBackground(RenderingContext c, Box box)voidpaintBorder(RenderingContext c, CalculatedStyle style, Rectangle edge, int sides)voidpaintBorder(RenderingContext c, Box box)voidpaintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side)voidpaintReplacedElement(RenderingContext c, BlockBox box)voidpopClip()Reverts the last clip on the stack.voidpopTransformLayer()Reverts the transform on the stack.voidpopTransforms(List<AffineTransform> inverse)Deprecated.voidpushClip(Shape s)Applies a clip on the output device.voidpushTransformLayer(AffineTransform transform)Applies a transform on the output device.List<AffineTransform>pushTransforms(List<AffineTransform> transforms)Deprecated.voidsetClip(Shape s)Deprecated.voidsetColor(FSColor color)voidsetFont(FSFont font)voidsetPaint(Paint paint)voidsetRenderingHint(RenderingHints.Key key, Object value)voidsetStroke(Stroke s)ObjectstartStructure(StructureType type, Box box)Propagate the structure heirachy to allow for PDF/UA compliance.voidtranslate(double tx, double ty)
-
-
-
Method Detail
-
setPaint
void setPaint(Paint paint)
-
pushTransforms
@Deprecated List<AffineTransform> pushTransforms(List<AffineTransform> transforms)
Deprecated.Apply the given transform on top of the current one in the PDF graphics stream. This is a cumulative operation. You should popTransform after the box and children are painted.- Returns:
- the list of inverse transforms to undo the effect of this transform
-
popTransforms
@Deprecated void popTransforms(List<AffineTransform> inverse)
Deprecated.
-
getAbsoluteTransformOriginX
@Deprecated float getAbsoluteTransformOriginX()
Deprecated.
-
getAbsoluteTransformOriginY
@Deprecated float getAbsoluteTransformOriginY()
Deprecated.
-
drawText
void drawText(RenderingContext c, InlineText inlineText)
-
drawSelection
void drawSelection(RenderingContext c, InlineText inlineText)
-
drawTextDecoration
void drawTextDecoration(RenderingContext c, LineBox lineBox)
-
drawTextDecoration
void drawTextDecoration(RenderingContext c, InlineLayoutBox iB, TextDecoration decoration)
-
paintBorder
void paintBorder(RenderingContext c, Box box)
-
paintBorder
void paintBorder(RenderingContext c, CalculatedStyle style, Rectangle edge, int sides)
-
paintCollapsedBorder
void paintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side)
-
paintBackground
void paintBackground(RenderingContext c, Box box)
-
paintBackground
void paintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border)
-
paintReplacedElement
void paintReplacedElement(RenderingContext c, BlockBox box)
-
drawDebugOutline
void drawDebugOutline(RenderingContext c, Box box, FSColor color)
-
setFont
void setFont(FSFont font)
-
setColor
void setColor(FSColor color)
-
drawRect
void drawRect(int x, int y, int width, int height)
-
drawOval
void drawOval(int x, int y, int width, int height)
-
drawBorderLine
void drawBorderLine(Shape bounds, int side, int width, boolean solid)
-
drawImage
void drawImage(FSImage image, int x, int y, boolean interpolate)
-
draw
void draw(Shape s)
-
fill
void fill(Shape s)
-
fillRect
void fillRect(int x, int y, int width, int height)
-
fillOval
void fillOval(int x, int y, int width, int height)
-
clip
@Deprecated void clip(Shape s)
Deprecated.
-
getClip
@Deprecated Shape getClip()
Deprecated.
-
setClip
@Deprecated void setClip(Shape s)
Deprecated.
-
translate
void translate(double tx, double ty)
-
setStroke
void setStroke(Stroke s)
-
getStroke
Stroke getStroke()
-
getRenderingHint
Object getRenderingHint(RenderingHints.Key key)
-
setRenderingHint
void setRenderingHint(RenderingHints.Key key, Object value)
-
isSupportsSelection
@Deprecated boolean isSupportsSelection()
Deprecated.
-
isSupportsCMYKColors
boolean isSupportsCMYKColors()
-
drawWithGraphics
void drawWithGraphics(float x, float y, float width, float height, OutputDeviceGraphicsDrawer renderer)Draw something using a Graphics2D at the given rectangle.
-
isPDF
boolean isPDF()
-
pushTransformLayer
void pushTransformLayer(AffineTransform transform)
Applies a transform on the output device. This is a cumulativew operation. NOTE: The current implementation shares a stack between transforms and clips, so calls topushTransformLayer(AffineTransform),popTransformLayer(),pushClip(Shape)andpopClip()MUST be nested correctly.
-
popTransformLayer
void popTransformLayer()
Reverts the transform on the stack. NOTE: The current implementation shares a stack between transforms and clips, so calls topushTransformLayer(AffineTransform),popTransformLayer(),pushClip(Shape)andpopClip()MUST be nested correctly.
-
pushClip
void pushClip(Shape s)
Applies a clip on the output device. This is a cumulative operation. The fast renderer MUST usepushClipandpopClipin preference toclipandsetClip. NOTE: The current implementation shares a stack between transforms and clips, so calls topushTransformLayer(AffineTransform),popTransformLayer(),pushClip(Shape)andpopClip()MUST be nested correctly.
-
popClip
void popClip()
Reverts the last clip on the stack. The fast renderer MUST usepushClipandpopClipin preference toclipandsetClip. NOTE: The current implementation shares a stack between transforms and clips, so calls topushTransformLayer(AffineTransform),popTransformLayer(),pushClip(Shape)andpopClip()MUST be nested correctly.
-
isFastRenderer
boolean isFastRenderer()
The new (2018) fast renderer is in use.
-
startStructure
Object startStructure(StructureType type, Box box)
Propagate the structure heirachy to allow for PDF/UA compliance.
-
endStructure
void endStructure(Object token)
-
-