Module flying.saucer
Package org.xhtmlrenderer.render
Class AbstractOutputDevice<T extends FSImage,FontType extends FSFont>
java.lang.Object
org.xhtmlrenderer.render.AbstractOutputDevice<T,FontType>
- All Implemented Interfaces:
OutputDevice<T,FontType>
- Direct Known Subclasses:
Java2DOutputDevice
public abstract class AbstractOutputDevice<T extends FSImage,FontType extends FSFont>
extends Object
implements OutputDevice<T,FontType>
An abstract implementation of an
OutputDevice. It provides complete
implementations for many OutputDevice methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawDebugOutline(RenderingContext c, Box box, FSColor color) protected abstract voiddrawLine(int x1, int y1, int x2, int y2) voiddrawText(RenderingContext c, InlineText inlineText) voiddrawTextDecoration(RenderingContext c, InlineLayoutBox iB, TextDecoration decoration) voiddrawTextDecoration(RenderingContext c, LineBox lineBox) Gets the FontSpecification for this AbstractOutputDevice.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) voidSets the FontSpecification for this AbstractOutputDevice.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xhtmlrenderer.extend.OutputDevice
clip, draw, drawBorderLine, drawImage, drawLinearGradient, drawOval, drawRect, drawSelection, fill, fillOval, fillRect, getClip, getRenderingHint, getStroke, isSupportsCMYKColors, isSupportsSelection, paintReplacedElement, setClip, setColor, setFont, setOpacity, setRenderingHint, setStroke, translate
-
Constructor Details
-
AbstractOutputDevice
public AbstractOutputDevice()
-
-
Method Details
-
drawLine
protected abstract void drawLine(int x1, int y1, int x2, int y2) -
drawText
-
drawTextDecoration
- Specified by:
drawTextDecorationin interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
drawTextDecoration
- Specified by:
drawTextDecorationin interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
drawDebugOutline
- Specified by:
drawDebugOutlinein interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
paintCollapsedBorder
public void paintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side) - Specified by:
paintCollapsedBorderin interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
paintBorder
- Specified by:
paintBorderin interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
paintBorder
- Specified by:
paintBorderin interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
paintBackground
public void paintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border) - Specified by:
paintBackgroundin interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
paintBackground
- Specified by:
paintBackgroundin interfaceOutputDevice<T extends FSImage,FontType extends FSFont>
-
getFontSpecification
Gets the FontSpecification for this AbstractOutputDevice.- Returns:
- current FontSpecification.
-
setFontSpecification
Sets the FontSpecification for this AbstractOutputDevice.- Parameters:
fs- current FontSpecification.
-