Package org.xhtmlrenderer.render
Class AbstractOutputDevice
- java.lang.Object
-
- org.xhtmlrenderer.render.AbstractOutputDevice
-
- All Implemented Interfaces:
OutputDevice
- Direct Known Subclasses:
Java2DOutputDevice
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 org.xhtmlrenderer.extend.OutputDevice
clip, draw, drawBorderLine, drawImage, drawOval, drawRect, drawSelection, fill, fillOval, fillRect, getClip, getRenderingHint, getStroke, isSupportsCMYKColors, isSupportsSelection, paintReplacedElement, setClip, setColor, setFont, setRenderingHint, setStroke, 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.
-
-