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 an OutputDevice. It provides complete
implementations for many OutputDevice methods.
|
Method Summary |
void |
drawDebugOutline(RenderingContext c,
Box box,
FSColor color)
|
protected abstract void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawText(RenderingContext c,
InlineText inlineText)
|
void |
drawTextDecoration(RenderingContext c,
InlineLayoutBox iB,
TextDecoration decoration)
|
void |
drawTextDecoration(RenderingContext c,
LineBox lineBox)
|
FontSpecification |
getFontSpecification()
Gets the FontSpecification for this AbstractOutputDevice. |
void |
paintBackground(RenderingContext c,
Box box)
|
void |
paintBackground(RenderingContext c,
CalculatedStyle style,
Rectangle bounds,
Rectangle bgImageContainer,
BorderPropertySet border)
|
void |
paintBorder(RenderingContext c,
Box box)
|
void |
paintBorder(RenderingContext c,
CalculatedStyle style,
Rectangle edge,
int sides)
|
void |
paintCollapsedBorder(RenderingContext c,
BorderPropertySet border,
Rectangle bounds,
int side)
|
void |
setFontSpecification(FontSpecification fs)
Sets the FontSpecification for this AbstractOutputDevice. |
| 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, drawBorderLine, drawImage, drawOval, drawRect, drawSelection, fill, fillOval, fillRect, getClip, getRenderingHint, getStroke, isSupportsCMYKColors, isSupportsSelection, paintReplacedElement, setClip, setColor, setFont, setRenderingHint, setStroke, translate |
AbstractOutputDevice
public AbstractOutputDevice()
drawLine
protected abstract void drawLine(int x1,
int y1,
int x2,
int y2)
drawText
public void drawText(RenderingContext c,
InlineText inlineText)
- Specified by:
drawText in interface OutputDevice
drawTextDecoration
public void drawTextDecoration(RenderingContext c,
InlineLayoutBox iB,
TextDecoration decoration)
- Specified by:
drawTextDecoration in interface OutputDevice
drawTextDecoration
public void drawTextDecoration(RenderingContext c,
LineBox lineBox)
- Specified by:
drawTextDecoration in interface OutputDevice
drawDebugOutline
public void drawDebugOutline(RenderingContext c,
Box box,
FSColor color)
- Specified by:
drawDebugOutline in interface OutputDevice
paintCollapsedBorder
public void paintCollapsedBorder(RenderingContext c,
BorderPropertySet border,
Rectangle bounds,
int side)
- Specified by:
paintCollapsedBorder in interface OutputDevice
paintBorder
public void paintBorder(RenderingContext c,
Box box)
- Specified by:
paintBorder in interface OutputDevice
paintBorder
public void paintBorder(RenderingContext c,
CalculatedStyle style,
Rectangle edge,
int sides)
- Specified by:
paintBorder in interface OutputDevice
paintBackground
public void paintBackground(RenderingContext c,
CalculatedStyle style,
Rectangle bounds,
Rectangle bgImageContainer,
BorderPropertySet border)
- Specified by:
paintBackground in interface OutputDevice
paintBackground
public void paintBackground(RenderingContext c,
Box box)
- Specified by:
paintBackground in interface OutputDevice
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.
Copyright © 2013. All Rights Reserved.