Package org.xhtmlrenderer.swing
Class Java2DOutputDevice
java.lang.Object
org.xhtmlrenderer.render.AbstractOutputDevice
org.xhtmlrenderer.swing.Java2DOutputDevice
- All Implemented Interfaces:
OutputDevice
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJava2DOutputDevice
(Graphics2D graphics) Java2DOutputDevice
(BufferedImage outputImage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
drawBorderLine
(Shape bounds, int side, int lineWidth, boolean solid) void
protected void
drawLine
(int x1, int y1, int x2, int y2) void
drawOval
(int x, int y, int width, int height) void
drawRect
(int x, int y, int width, int height) private void
drawSelectedText
(RenderingContext c, InlineText inlineText, InlineLayoutBox iB, FSGlyphVector glyphVector) void
drawSelection
(RenderingContext c, InlineText inlineText) void
void
fillOval
(int x, int y, int width, int height) void
fillRect
(int x, int y, int width, int height) getClip()
boolean
boolean
void
void
void
void
void
setRenderingHint
(RenderingHints.Key key, Object value) void
void
translate
(double tx, double ty) Methods inherited from class org.xhtmlrenderer.render.AbstractOutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecification
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
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
-
Field Details
-
_graphics
-
-
Constructor Details
-
Java2DOutputDevice
-
Java2DOutputDevice
-
-
Method Details
-
drawSelection
- Specified by:
drawSelection
in interfaceOutputDevice
-
drawSelectedText
private void drawSelectedText(RenderingContext c, InlineText inlineText, InlineLayoutBox iB, FSGlyphVector glyphVector) -
drawBorderLine
- Specified by:
drawBorderLine
in interfaceOutputDevice
-
paintReplacedElement
- Specified by:
paintReplacedElement
in interfaceOutputDevice
-
setColor
- Specified by:
setColor
in interfaceOutputDevice
-
drawLine
protected void drawLine(int x1, int y1, int x2, int y2) - Specified by:
drawLine
in classAbstractOutputDevice
-
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
- Specified by:
setClip
in interfaceOutputDevice
-
getClip
- Specified by:
getClip
in interfaceOutputDevice
-
clip
- Specified by:
clip
in interfaceOutputDevice
-
translate
public void translate(double tx, double ty) - Specified by:
translate
in interfaceOutputDevice
-
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
- Specified by:
getRenderingHint
in interfaceOutputDevice
-
setRenderingHint
- Specified by:
setRenderingHint
in interfaceOutputDevice
-
setFont
- Specified by:
setFont
in interfaceOutputDevice
-
setStroke
- Specified by:
setStroke
in interfaceOutputDevice
-
getStroke
- Specified by:
getStroke
in interfaceOutputDevice
-
fill
- Specified by:
fill
in interfaceOutputDevice
-
draw
- Specified by:
draw
in interfaceOutputDevice
-
drawImage
- Specified by:
drawImage
in interfaceOutputDevice
-
isSupportsSelection
public boolean isSupportsSelection()- Specified by:
isSupportsSelection
in interfaceOutputDevice
-
isSupportsCMYKColors
public boolean isSupportsCMYKColors()- Specified by:
isSupportsCMYKColors
in interfaceOutputDevice
-