public interface OutputDevice
| Modifier and Type | Method and Description |
|---|---|
void |
clip(Shape s) |
void |
draw(Shape s) |
void |
drawBorderLine(Shape bounds,
int side,
int width,
boolean solid) |
void |
drawDebugOutline(RenderingContext c,
Box box,
FSColor color) |
void |
drawImage(FSImage image,
int x,
int y,
boolean interpolate) |
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 |
drawText(RenderingContext c,
InlineText inlineText) |
void |
drawTextDecoration(RenderingContext c,
InlineLayoutBox iB,
TextDecoration decoration) |
void |
drawTextDecoration(RenderingContext c,
LineBox lineBox) |
void |
drawWithGraphics(float x,
float y,
float width,
float height,
OutputDeviceGraphicsDrawer renderer)
Draw something using a Graphics2D at the given rectangle.
|
void |
fill(Shape s) |
void |
fillOval(int x,
int y,
int width,
int height) |
void |
fillRect(int x,
int y,
int width,
int height) |
float |
getAbsoluteTransformOriginX() |
float |
getAbsoluteTransformOriginY() |
Shape |
getClip() |
Object |
getRenderingHint(RenderingHints.Key key) |
Stroke |
getStroke() |
boolean |
isFastRenderer()
The new (2018) fast renderer is in use.
|
boolean |
isPDF() |
boolean |
isSupportsCMYKColors() |
boolean |
isSupportsSelection() |
void |
paintBackground(RenderingContext c,
Box box) |
void |
paintBackground(RenderingContext c,
CalculatedStyle style,
Rectangle bounds,
Rectangle bgImageContainer,
BorderPropertySet border) |
void |
paintBorder(RenderingContext c,
Box box) |
void |
paintBorder(RenderingContext c,
CalculatedStyle style,
Rectangle edge,
int sides) |
void |
paintCollapsedBorder(RenderingContext c,
BorderPropertySet border,
Rectangle bounds,
int side) |
void |
paintReplacedElement(RenderingContext c,
BlockBox box) |
void |
popClip()
Reverts the last clip on the stack.
|
void |
popTransformLayer()
Reverts the transform on the stack.
|
void |
popTransforms(List<AffineTransform> inverse) |
void |
pushClip(Shape s)
Applies a clip on the output device.
|
void |
pushTransformLayer(AffineTransform transform)
Applies a transform on the output device.
|
List<AffineTransform> |
pushTransforms(List<AffineTransform> transforms)
Apply the given transform on top of the current one in the PDF graphics stream.
|
void |
setClip(Shape s) |
void |
setColor(FSColor color) |
void |
setFont(FSFont font) |
void |
setPaint(Paint paint) |
void |
setRenderingHint(RenderingHints.Key key,
Object value) |
void |
setStroke(Stroke s) |
void |
translate(double tx,
double ty) |
void setPaint(Paint paint)
List<AffineTransform> pushTransforms(List<AffineTransform> transforms)
void popTransforms(List<AffineTransform> inverse)
float getAbsoluteTransformOriginX()
float getAbsoluteTransformOriginY()
void drawText(RenderingContext c, InlineText inlineText)
void drawSelection(RenderingContext c, InlineText inlineText)
void drawTextDecoration(RenderingContext c, LineBox lineBox)
void drawTextDecoration(RenderingContext c, InlineLayoutBox iB, TextDecoration decoration)
void paintBorder(RenderingContext c, Box box)
void paintBorder(RenderingContext c, CalculatedStyle style, Rectangle edge, int sides)
void paintCollapsedBorder(RenderingContext c, BorderPropertySet border, Rectangle bounds, int side)
void paintBackground(RenderingContext c, Box box)
void paintBackground(RenderingContext c, CalculatedStyle style, Rectangle bounds, Rectangle bgImageContainer, BorderPropertySet border)
void paintReplacedElement(RenderingContext c, BlockBox box)
void drawDebugOutline(RenderingContext c, Box box, FSColor color)
void setFont(FSFont font)
void setColor(FSColor color)
void drawRect(int x,
int y,
int width,
int height)
void drawOval(int x,
int y,
int width,
int height)
void drawBorderLine(Shape bounds, int side, int width, boolean solid)
void drawImage(FSImage image, int x, int y, boolean interpolate)
void draw(Shape s)
void fill(Shape s)
void fillRect(int x,
int y,
int width,
int height)
void fillOval(int x,
int y,
int width,
int height)
void clip(Shape s)
Shape getClip()
void setClip(Shape s)
void translate(double tx,
double ty)
void setStroke(Stroke s)
Stroke getStroke()
Object getRenderingHint(RenderingHints.Key key)
void setRenderingHint(RenderingHints.Key key, Object value)
boolean isSupportsSelection()
boolean isSupportsCMYKColors()
void drawWithGraphics(float x,
float y,
float width,
float height,
OutputDeviceGraphicsDrawer renderer)
boolean isPDF()
void pushTransformLayer(AffineTransform transform)
pushTransformLayer(AffineTransform),
popTransformLayer(), pushClip(Shape) and popClip() MUST
be nested correctly.void popTransformLayer()
pushTransformLayer(AffineTransform),
popTransformLayer(), pushClip(Shape) and popClip() MUST
be nested correctly.void pushClip(Shape s)
pushClip and popClip
in preference to clip and setClip.
NOTE: The current implementation shares a stack
between transforms and clips, so calls to pushTransformLayer(AffineTransform),
popTransformLayer(), pushClip(Shape) and popClip() MUST
be nested correctly.void popClip()
pushClip and popClip
in preference to clip and setClip.
NOTE: The current implementation shares a stack
between transforms and clips, so calls to pushTransformLayer(AffineTransform),
popTransformLayer(), pushClip(Shape) and popClip() MUST
be nested correctly.boolean isFastRenderer()
Copyright © 2018. All rights reserved.