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 an
OutputDevice. It provides complete
implementations for many OutputDevice methods.-
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, waitMethods 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
-
Constructor Details
-
AbstractOutputDevice
public AbstractOutputDevice()
-
-
Method Details
-
drawLine
protected abstract void drawLine(int x1, int y1, int x2, int y2) -
drawText
- Specified by:
drawTextin interfaceOutputDevice
-
drawTextDecoration
- Specified by:
drawTextDecorationin interfaceOutputDevice
-
drawTextDecoration
- Specified by:
drawTextDecorationin interfaceOutputDevice
-
drawDebugOutline
- Specified by:
drawDebugOutlinein interfaceOutputDevice
-
paintCollapsedBorder
public void paintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side)- Specified by:
paintCollapsedBorderin interfaceOutputDevice
-
paintBorder
- Specified by:
paintBorderin interfaceOutputDevice
-
paintBorder
- Specified by:
paintBorderin interfaceOutputDevice
-
paintBackground
public void paintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border)- Specified by:
paintBackgroundin interfaceOutputDevice
-
paintBackground
- Specified by:
paintBackgroundin interfaceOutputDevice
-
getFontSpecification
Gets the FontSpecification for this AbstractOutputDevice.- Returns:
- current FontSpecification.
-
setFontSpecification
Sets the FontSpecification for this AbstractOutputDevice.- Parameters:
fs- current FontSpecification.
-
isPDF
public boolean isPDF()- Specified by:
isPDFin interfaceOutputDevice
-