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
|
Method Summary |
void |
clip(Shape s)
|
void |
drawBorderLine(Rectangle bounds,
int side,
int lineWidth,
boolean solid)
|
void |
drawImage(FSImage image,
int x,
int y)
|
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)
|
void |
drawSelection(RenderingContext c,
InlineText inlineText)
|
void |
fill(Shape s)
|
void |
fillOval(int x,
int y,
int width,
int height)
|
void |
fillRect(int x,
int y,
int width,
int height)
|
Shape |
getClip()
|
Graphics2D |
getGraphics()
|
Object |
getRenderingHint(RenderingHints.Key key)
|
Stroke |
getStroke()
|
boolean |
isSupportsCMYKColors()
|
boolean |
isSupportsSelection()
|
void |
paintReplacedElement(RenderingContext c,
BlockBox box)
|
void |
setClip(Shape s)
|
void |
setColor(FSColor color)
|
void |
setFont(FSFont font)
|
void |
setRenderingHint(RenderingHints.Key key,
Object value)
|
void |
setStroke(Stroke s)
|
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 |
Java2DOutputDevice
public Java2DOutputDevice(Graphics2D graphics)
Java2DOutputDevice
public Java2DOutputDevice(BufferedImage outputImage)
drawSelection
public void drawSelection(RenderingContext c,
InlineText inlineText)
- Specified by:
drawSelection in interface OutputDevice
drawBorderLine
public void drawBorderLine(Rectangle bounds,
int side,
int lineWidth,
boolean solid)
- Specified by:
drawBorderLine in interface OutputDevice
paintReplacedElement
public void paintReplacedElement(RenderingContext c,
BlockBox box)
- Specified by:
paintReplacedElement in interface OutputDevice
setColor
public void setColor(FSColor color)
- Specified by:
setColor in interface OutputDevice
drawLine
protected void drawLine(int x1,
int y1,
int x2,
int y2)
- Specified by:
drawLine in class AbstractOutputDevice
drawRect
public void drawRect(int x,
int y,
int width,
int height)
- Specified by:
drawRect in interface OutputDevice
fillRect
public void fillRect(int x,
int y,
int width,
int height)
- Specified by:
fillRect in interface OutputDevice
setClip
public void setClip(Shape s)
- Specified by:
setClip in interface OutputDevice
getClip
public Shape getClip()
- Specified by:
getClip in interface OutputDevice
clip
public void clip(Shape s)
- Specified by:
clip in interface OutputDevice
translate
public void translate(double tx,
double ty)
- Specified by:
translate in interface OutputDevice
getGraphics
public Graphics2D getGraphics()
drawOval
public void drawOval(int x,
int y,
int width,
int height)
- Specified by:
drawOval in interface OutputDevice
fillOval
public void fillOval(int x,
int y,
int width,
int height)
- Specified by:
fillOval in interface OutputDevice
getRenderingHint
public Object getRenderingHint(RenderingHints.Key key)
- Specified by:
getRenderingHint in interface OutputDevice
setRenderingHint
public void setRenderingHint(RenderingHints.Key key,
Object value)
- Specified by:
setRenderingHint in interface OutputDevice
setFont
public void setFont(FSFont font)
- Specified by:
setFont in interface OutputDevice
setStroke
public void setStroke(Stroke s)
- Specified by:
setStroke in interface OutputDevice
getStroke
public Stroke getStroke()
- Specified by:
getStroke in interface OutputDevice
fill
public void fill(Shape s)
- Specified by:
fill in interface OutputDevice
drawImage
public void drawImage(FSImage image,
int x,
int y)
- Specified by:
drawImage in interface OutputDevice
isSupportsSelection
public boolean isSupportsSelection()
- Specified by:
isSupportsSelection in interface OutputDevice
isSupportsCMYKColors
public boolean isSupportsCMYKColors()
- Specified by:
isSupportsCMYKColors in interface OutputDevice
Copyright © 2013. All Rights Reserved.