Package com.openhtmltopdf.render
Class AbstractOutputDevice
- java.lang.Object
-
- com.openhtmltopdf.render.AbstractOutputDevice
-
- All Implemented Interfaces:
OutputDevice
public abstract class AbstractOutputDevice extends Object implements OutputDevice
An abstract implementation of anOutputDevice. It provides complete implementations for manyOutputDevicemethods.
-
-
Constructor Summary
Constructors Constructor Description AbstractOutputDevice()
-
Method Summary
-
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
clip, draw, drawBorderLine, drawImage, drawLinearGradient, drawOval, drawRect, drawSelection, drawWithGraphics, endStructure, fill, fillOval, fillRect, getAbsoluteTransformOriginX, getAbsoluteTransformOriginY, getClip, getRenderingHint, getStroke, isFastRenderer, isSupportsCMYKColors, isSupportsSelection, paintReplacedElement, popClip, popTransformLayer, popTransforms, pushClip, pushTransformLayer, pushTransforms, setClip, setColor, setFont, setPaint, setRenderingHint, setStroke, startStructure, translate
-
-
-
-
Method Detail
-
drawLine
protected abstract void drawLine(int x1, int y1, int x2, int y2)
-
drawText
public void drawText(RenderingContext c, InlineText inlineText)
- Specified by:
drawTextin interfaceOutputDevice
-
drawTextDecoration
public void drawTextDecoration(RenderingContext c, InlineLayoutBox iB, TextDecoration decoration)
- Specified by:
drawTextDecorationin interfaceOutputDevice
-
drawTextDecoration
public void drawTextDecoration(RenderingContext c, LineBox lineBox)
- Specified by:
drawTextDecorationin interfaceOutputDevice
-
drawDebugOutline
public void drawDebugOutline(RenderingContext c, Box box, FSColor color)
- Specified by:
drawDebugOutlinein interfaceOutputDevice
-
paintCollapsedBorder
public void paintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side)
- Specified by:
paintCollapsedBorderin interfaceOutputDevice
-
paintBorder
public void paintBorder(RenderingContext c, Box box)
- Specified by:
paintBorderin interfaceOutputDevice
-
paintBorder
public void paintBorder(RenderingContext c, CalculatedStyle style, Rectangle edge, int sides)
- Specified by:
paintBorderin interfaceOutputDevice
-
paintBackground
public void paintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border)
- Specified by:
paintBackgroundin interfaceOutputDevice
-
paintBackground
public void paintBackground(RenderingContext c, Box box)
- Specified by:
paintBackgroundin interfaceOutputDevice
-
getFontSpecification
public FontSpecification getFontSpecification()
Gets the FontSpecification for this AbstractOutputDevice.- Returns:
- current FontSpecification.
-
setFontSpecification
public void setFontSpecification(FontSpecification fs)
Sets the FontSpecification for this AbstractOutputDevice.- Parameters:
fs- current FontSpecification.
-
isPDF
public boolean isPDF()
- Specified by:
isPDFin interfaceOutputDevice
-
-