java.lang.Object
org.xhtmlrenderer.render.AbstractOutputDevice
org.xhtmlrenderer.swt.SWTOutputDevice
- All Implemented Interfaces:
org.xhtmlrenderer.extend.OutputDevice
@NullUnmarked
public class SWTOutputDevice
extends org.xhtmlrenderer.render.AbstractOutputDevice
Implementation of
OutputDevice for SWT.- Author:
- Vianney le Clément
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()Clean used resources.voidvoidvoiddrawBorderLine(Shape bounds, int side, int lineWidth, boolean solid) voiddrawImage(org.xhtmlrenderer.extend.FSImage image, int x, int y) protected voiddrawLine(int x1, int y1, int x2, int y2) voiddrawLinearGradient(org.xhtmlrenderer.css.style.derived.FSLinearGradient gradient, int x, int y, int width, int height) voiddrawOval(int x, int y, int width, int height) voiddrawRect(int x, int y, int width, int height) voiddrawSelection(org.xhtmlrenderer.render.RenderingContext c, org.xhtmlrenderer.render.InlineText inlineText) voidvoidfillOval(int x, int y, int width, int height) voidfillRect(int x, int y, int width, int height) @Nullable ShapegetClip()org.eclipse.swt.graphics.GCgetGC()@Nullable ObjectgetRenderingHint(@NonNull RenderingHints.Key key) booleanbooleanvoidpaintReplacedElement(org.xhtmlrenderer.render.RenderingContext c, org.xhtmlrenderer.render.BlockBox box) voidvoidvoidsetColor(org.xhtmlrenderer.css.parser.FSColor color) voidsetFont(org.xhtmlrenderer.render.FSFont font) voidsetOpacity(float opacity) voidsetRenderingHint(RenderingHints.Key key, Object value) voidvoidtranslate(double tx, double ty) Methods inherited from class org.xhtmlrenderer.render.AbstractOutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecification
-
Constructor Details
-
SWTOutputDevice
public SWTOutputDevice(org.eclipse.swt.graphics.GC gc)
-
-
Method Details
-
getGC
public org.eclipse.swt.graphics.GC getGC()- Returns:
- the Graphical Context associated with this OutputDevice
-
clean
public void clean()Clean used resources. -
clip
-
setClip
-
getClip
-
drawLine
protected void drawLine(int x1, int y1, int x2, int y2) - Specified by:
drawLinein classorg.xhtmlrenderer.render.AbstractOutputDevice
-
drawBorderLine
-
drawImage
public void drawImage(org.xhtmlrenderer.extend.FSImage image, int x, int y) -
drawLinearGradient
public void drawLinearGradient(org.xhtmlrenderer.css.style.derived.FSLinearGradient gradient, int x, int y, int width, int height) -
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
-
fill
-
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(org.xhtmlrenderer.render.RenderingContext c, org.xhtmlrenderer.render.BlockBox box) -
setOpacity
public void setOpacity(float opacity) -
setColor
-
setFont
public void setFont(org.xhtmlrenderer.render.FSFont font) -
setColor
public void setColor(org.xhtmlrenderer.css.parser.FSColor color) -
getStroke
-
setStroke
-
translate
public void translate(double tx, double ty) -
getRenderingHint
-
setRenderingHint
-
drawSelection
public void drawSelection(org.xhtmlrenderer.render.RenderingContext c, org.xhtmlrenderer.render.InlineText inlineText) -
isSupportsSelection
public boolean isSupportsSelection() -
isSupportsCMYKColors
public boolean isSupportsCMYKColors()
-