Package org.xhtmlrenderer.swing
Class Java2DOutputDevice
- java.lang.Object
-
- org.xhtmlrenderer.render.AbstractOutputDevice
-
- org.xhtmlrenderer.swing.Java2DOutputDevice
-
- All Implemented Interfaces:
OutputDevice
public class Java2DOutputDevice extends AbstractOutputDevice implements OutputDevice
-
-
Constructor Summary
Constructors Constructor Description Java2DOutputDevice(java.awt.Graphics2D graphics)
Java2DOutputDevice(java.awt.image.BufferedImage outputImage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clip(java.awt.Shape s)
void
drawBorderLine(java.awt.Rectangle bounds, int side, int lineWidth, boolean solid)
void
drawImage(FSImage image, int x, int y)
void
drawOval(int x, int y, int width, int height)
void
drawRect(int x, int y, int width, int height)
void
drawSelection(RenderingContext c, InlineText inlineText)
void
fill(java.awt.Shape s)
void
fillOval(int x, int y, int width, int height)
void
fillRect(int x, int y, int width, int height)
java.awt.Shape
getClip()
java.awt.Graphics2D
getGraphics()
java.lang.Object
getRenderingHint(java.awt.RenderingHints.Key key)
java.awt.Stroke
getStroke()
boolean
isSupportsCMYKColors()
boolean
isSupportsSelection()
void
paintReplacedElement(RenderingContext c, BlockBox box)
void
setClip(java.awt.Shape s)
void
setColor(FSColor color)
void
setFont(FSFont font)
void
setRenderingHint(java.awt.RenderingHints.Key key, java.lang.Object value)
void
setStroke(java.awt.Stroke s)
void
translate(double tx, double ty)
-
Methods inherited from class org.xhtmlrenderer.render.AbstractOutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xhtmlrenderer.extend.OutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
-
-
-
-
Method Detail
-
drawSelection
public void drawSelection(RenderingContext c, InlineText inlineText)
- Specified by:
drawSelection
in interfaceOutputDevice
-
drawBorderLine
public void drawBorderLine(java.awt.Rectangle bounds, int side, int lineWidth, boolean solid)
- Specified by:
drawBorderLine
in interfaceOutputDevice
-
paintReplacedElement
public void paintReplacedElement(RenderingContext c, BlockBox box)
- Specified by:
paintReplacedElement
in interfaceOutputDevice
-
setColor
public void setColor(FSColor color)
- Specified by:
setColor
in interfaceOutputDevice
-
drawRect
public void drawRect(int x, int y, int width, int height)
- Specified by:
drawRect
in interfaceOutputDevice
-
fillRect
public void fillRect(int x, int y, int width, int height)
- Specified by:
fillRect
in interfaceOutputDevice
-
setClip
public void setClip(java.awt.Shape s)
- Specified by:
setClip
in interfaceOutputDevice
-
getClip
public java.awt.Shape getClip()
- Specified by:
getClip
in interfaceOutputDevice
-
clip
public void clip(java.awt.Shape s)
- Specified by:
clip
in interfaceOutputDevice
-
translate
public void translate(double tx, double ty)
- Specified by:
translate
in interfaceOutputDevice
-
getGraphics
public java.awt.Graphics2D getGraphics()
-
drawOval
public void drawOval(int x, int y, int width, int height)
- Specified by:
drawOval
in interfaceOutputDevice
-
fillOval
public void fillOval(int x, int y, int width, int height)
- Specified by:
fillOval
in interfaceOutputDevice
-
getRenderingHint
public java.lang.Object getRenderingHint(java.awt.RenderingHints.Key key)
- Specified by:
getRenderingHint
in interfaceOutputDevice
-
setRenderingHint
public void setRenderingHint(java.awt.RenderingHints.Key key, java.lang.Object value)
- Specified by:
setRenderingHint
in interfaceOutputDevice
-
setFont
public void setFont(FSFont font)
- Specified by:
setFont
in interfaceOutputDevice
-
setStroke
public void setStroke(java.awt.Stroke s)
- Specified by:
setStroke
in interfaceOutputDevice
-
getStroke
public java.awt.Stroke getStroke()
- Specified by:
getStroke
in interfaceOutputDevice
-
fill
public void fill(java.awt.Shape s)
- Specified by:
fill
in interfaceOutputDevice
-
drawImage
public void drawImage(FSImage image, int x, int y)
- Specified by:
drawImage
in interfaceOutputDevice
-
isSupportsSelection
public boolean isSupportsSelection()
- Specified by:
isSupportsSelection
in interfaceOutputDevice
-
isSupportsCMYKColors
public boolean isSupportsCMYKColors()
- Specified by:
isSupportsCMYKColors
in interfaceOutputDevice
-
-