public class SWTOutputDevice extends AbstractOutputDevice
OutputDevice for SWT.| Constructor and Description |
|---|
SWTOutputDevice(org.eclipse.swt.graphics.GC gc) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Clean used resources.
|
void |
clip(Shape s) |
void |
draw(Shape s) |
void |
drawBorderLine(Shape 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() |
org.eclipse.swt.graphics.GC |
getGC() |
Object |
getRenderingHint(RenderingHints.Key key) |
Stroke |
getStroke() |
boolean |
isSupportsCMYKColors() |
boolean |
isSupportsSelection() |
void |
paintReplacedElement(RenderingContext c,
BlockBox box) |
void |
setClip(Shape s) |
void |
setColor(Color color) |
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) |
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecificationpublic org.eclipse.swt.graphics.GC getGC()
public void clean()
public void clip(Shape s)
public void setClip(Shape s)
public Shape getClip()
protected void drawLine(int x1,
int y1,
int x2,
int y2)
drawLine in class AbstractOutputDevicepublic void drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)
public void drawImage(FSImage image, int x, int y)
public void drawOval(int x,
int y,
int width,
int height)
public void drawRect(int x,
int y,
int width,
int height)
public void draw(Shape s)
public void fill(Shape s)
public void fillOval(int x,
int y,
int width,
int height)
public void fillRect(int x,
int y,
int width,
int height)
public void paintReplacedElement(RenderingContext c, BlockBox box)
public void setColor(Color color)
public void setFont(FSFont font)
public void setColor(FSColor color)
public Stroke getStroke()
public void setStroke(Stroke s)
public void translate(double tx,
double ty)
public Object getRenderingHint(RenderingHints.Key key)
public void setRenderingHint(RenderingHints.Key key, Object value)
public void drawSelection(RenderingContext c, InlineText inlineText)
public boolean isSupportsSelection()
public boolean isSupportsCMYKColors()
Copyright © 2019. All rights reserved.