Package org.xhtmlrenderer.swt
Class SWTOutputDevice
- java.lang.Object
-
- org.xhtmlrenderer.render.AbstractOutputDevice
-
- org.xhtmlrenderer.swt.SWTOutputDevice
-
- All Implemented Interfaces:
OutputDevice
public class SWTOutputDevice extends AbstractOutputDevice
Implementation ofOutputDevicefor SWT.- Author:
- Vianney le Clément
-
-
Constructor Summary
Constructors Constructor Description SWTOutputDevice(org.eclipse.swt.graphics.GC gc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean()Clean used resources.voidclip(Shape s)voiddraw(Shape s)voiddrawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)voiddrawImage(FSImage image, int x, int y)protected voiddrawLine(int x1, int y1, int x2, int y2)voiddrawOval(int x, int y, int width, int height)voiddrawRect(int x, int y, int width, int height)voiddrawSelection(RenderingContext c, InlineText inlineText)voidfill(Shape s)voidfillOval(int x, int y, int width, int height)voidfillRect(int x, int y, int width, int height)ShapegetClip()org.eclipse.swt.graphics.GCgetGC()ObjectgetRenderingHint(RenderingHints.Key key)StrokegetStroke()booleanisSupportsCMYKColors()booleanisSupportsSelection()voidpaintReplacedElement(RenderingContext c, BlockBox box)voidsetClip(Shape s)voidsetColor(Color color)voidsetColor(FSColor color)voidsetFont(FSFont font)voidsetRenderingHint(RenderingHints.Key key, Object value)voidsetStroke(Stroke s)voidtranslate(double tx, double ty)-
Methods inherited from class org.xhtmlrenderer.render.AbstractOutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecification
-
-
-
-
Method Detail
-
getGC
public org.eclipse.swt.graphics.GC getGC()
- Returns:
- the Graphical Context associated with this OutputDevice
-
clean
public void clean()
Clean used resources.
-
clip
public void clip(Shape s)
-
setClip
public void setClip(Shape s)
-
getClip
public Shape getClip()
-
drawLine
protected void drawLine(int x1, int y1, int x2, int y2)- Specified by:
drawLinein classAbstractOutputDevice
-
drawBorderLine
public void drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)
-
drawImage
public void drawImage(FSImage image, int x, int y)
-
drawOval
public void drawOval(int x, int y, int width, int height)
-
drawRect
public void drawRect(int x, int y, int width, int height)
-
draw
public void draw(Shape s)
-
fill
public void fill(Shape s)
-
fillOval
public void fillOval(int x, int y, int width, int height)
-
fillRect
public void fillRect(int x, int y, int width, int height)
-
paintReplacedElement
public void paintReplacedElement(RenderingContext c, BlockBox box)
-
setColor
public void setColor(Color color)
-
setFont
public void setFont(FSFont font)
-
setColor
public void setColor(FSColor color)
-
getStroke
public Stroke getStroke()
-
setStroke
public void setStroke(Stroke s)
-
translate
public void translate(double tx, double ty)
-
getRenderingHint
public Object getRenderingHint(RenderingHints.Key key)
-
setRenderingHint
public void setRenderingHint(RenderingHints.Key key, Object value)
-
drawSelection
public void drawSelection(RenderingContext c, InlineText inlineText)
-
isSupportsSelection
public boolean isSupportsSelection()
-
isSupportsCMYKColors
public boolean isSupportsCMYKColors()
-
-