Package com.openhtmltopdf.extend
Interface OutputDevice
- All Known Implementing Classes:
AbstractOutputDevice
public interface OutputDevice
-
Method Summary
Modifier and Type Method Description void
clip(Shape s)
Deprecated.void
draw(Shape s)
void
drawBorderLine(Shape bounds, int side, int width, boolean solid)
void
drawDebugOutline(RenderingContext c, Box box, FSColor color)
void
drawImage(FSImage image, int x, int y, boolean interpolate)
default void
drawLinearGradient(FSLinearGradient backgroundLinearGradient, Shape bounds)
void
drawOval(int x, int y, int width, int height)
void
drawRect(int x, int y, int width, int height)
void
drawSelection(RenderingContext c, InlineText inlineText)
void
drawText(RenderingContext c, InlineText inlineText)
void
drawTextDecoration(RenderingContext c, InlineLayoutBox iB, TextDecoration decoration)
void
drawTextDecoration(RenderingContext c, LineBox lineBox)
void
drawWithGraphics(float x, float y, float width, float height, OutputDeviceGraphicsDrawer renderer)
Draw something using a Graphics2D at the given rectangle.void
endStructure(Object token)
void
fill(Shape s)
void
fillOval(int x, int y, int width, int height)
void
fillRect(int x, int y, int width, int height)
float
getAbsoluteTransformOriginX()
Deprecated.float
getAbsoluteTransformOriginY()
Deprecated.Shape
getClip()
Deprecated.Object
getRenderingHint(RenderingHints.Key key)
Stroke
getStroke()
boolean
isFastRenderer()
The new (2018) fast renderer is in use.boolean
isPDF()
boolean
isSupportsCMYKColors()
boolean
isSupportsSelection()
Deprecated.void
paintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border)
void
paintBackground(RenderingContext c, Box box)
void
paintBorder(RenderingContext c, CalculatedStyle style, Rectangle edge, int sides)
void
paintBorder(RenderingContext c, Box box)
void
paintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side)
void
paintReplacedElement(RenderingContext c, BlockBox box)
void
popClip()
Reverts the last clip on the stack.void
popTransformLayer()
Reverts the transform on the stack.void
popTransforms(List<AffineTransform> inverse)
Deprecated.void
pushClip(Shape s)
Applies a clip on the output device.void
pushTransformLayer(AffineTransform transform)
Applies a transform on the output device.List<AffineTransform>
pushTransforms(List<AffineTransform> transforms)
Deprecated.void
setClip(Shape s)
Deprecated.void
setColor(FSColor color)
void
setFont(FSFont font)
void
setPaint(Paint paint)
void
setRenderingHint(RenderingHints.Key key, Object value)
void
setStroke(Stroke s)
Object
startStructure(StructureType type, Box box)
Propagate the structure heirachy to allow for PDF/UA compliance.void
translate(double tx, double ty)
-
Method Details
-
setPaint
-
pushTransforms
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. -
getAbsoluteTransformOriginX
Deprecated. -
getAbsoluteTransformOriginY
Deprecated. -
drawText
-
drawSelection
-
drawTextDecoration
-
drawTextDecoration
-
paintBorder
-
paintBorder
-
paintCollapsedBorder
void paintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side) -
paintBackground
-
paintBackground
void paintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border) -
paintReplacedElement
-
drawDebugOutline
-
setFont
-
setColor
-
drawRect
void drawRect(int x, int y, int width, int height) -
drawOval
void drawOval(int x, int y, int width, int height) -
drawBorderLine
-
drawImage
-
drawLinearGradient
-
draw
-
fill
-
fillRect
void fillRect(int x, int y, int width, int height) -
fillOval
void fillOval(int x, int y, int width, int height) -
clip
Deprecated. -
getClip
Deprecated. -
setClip
Deprecated. -
translate
void translate(double tx, double ty) -
setStroke
-
getStroke
Stroke getStroke() -
getRenderingHint
-
setRenderingHint
-
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
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
Applies a clip on the output device. This is a cumulative operation. The fast renderer MUST usepushClip
andpopClip
in preference toclip
andsetClip
. 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 usepushClip
andpopClip
in preference toclip
andsetClip
. 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
Propagate the structure heirachy to allow for PDF/UA compliance. -
endStructure
-