public interface OutputDevice
| Modifier and Type | Method and Description |
|---|---|
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) |
default void |
drawLinearGradient(FSLinearGradient backgroundLinearGradient,
Shape bounds) |
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 |
endStructure(Object token) |
void |
fill(Shape s) |
void |
fillOval(int x,
int y,
int width,
int height) |
void |
fillRect(int x,
int y,
int width,
int height) |
Object |
getRenderingHint(RenderingHints.Key key) |
Stroke |
getStroke() |
boolean |
isPDF() |
boolean |
isSupportsCMYKColors() |
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 |
pushClip(Shape s)
Applies a clip on the output device.
|
void |
pushTransformLayer(AffineTransform transform)
Applies a transform on the output device.
|
void |
setColor(FSColor color) |
void |
setFont(FSFont font) |
void |
setPaint(Paint paint) |
void |
setRenderingHint(RenderingHints.Key key,
Object value) |
void |
setStroke(Stroke s) |
Object |
startStructure(StructureType type,
Box box)
Propagate the structure heirachy to allow for PDF/UA compliance.
|
void |
translate(double tx,
double ty) |
void setPaint(Paint paint)
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)
default void drawLinearGradient(FSLinearGradient backgroundLinearGradient, Shape bounds)
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 translate(double tx,
double ty)
void setStroke(Stroke s)
Stroke getStroke()
Object getRenderingHint(RenderingHints.Key key)
void setRenderingHint(RenderingHints.Key key, Object value)
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.Object startStructure(StructureType type, Box box)
void endStructure(Object token)
Copyright © 2004–2025. All rights reserved.