public class Java2DOutputDevice extends AbstractOutputDevice implements OutputDevice
Constructor and Description |
---|
Java2DOutputDevice(java.awt.image.BufferedImage outputImage) |
Java2DOutputDevice(java.awt.Graphics2D graphics) |
Modifier and Type | Method and Description |
---|---|
void |
clip(java.awt.Shape s) |
void |
drawBorderLine(java.awt.Rectangle bounds,
int side,
int lineWidth,
boolean solid) |
void |
drawImage(FSImage image,
int x,
int y) |
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(java.awt.Shape s) |
void |
fillOval(int x,
int y,
int width,
int height) |
void |
fillRect(int x,
int y,
int width,
int height) |
java.awt.Shape |
getClip() |
java.awt.Graphics2D |
getGraphics() |
java.lang.Object |
getRenderingHint(java.awt.RenderingHints.Key key) |
java.awt.Stroke |
getStroke() |
boolean |
isSupportsCMYKColors() |
boolean |
isSupportsSelection() |
void |
paintReplacedElement(RenderingContext c,
BlockBox box) |
void |
setClip(java.awt.Shape s) |
void |
setColor(FSColor color) |
void |
setFont(FSFont font) |
void |
setRenderingHint(java.awt.RenderingHints.Key key,
java.lang.Object value) |
void |
setStroke(java.awt.Stroke s) |
void |
translate(double tx,
double ty) |
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
public Java2DOutputDevice(java.awt.Graphics2D graphics)
public Java2DOutputDevice(java.awt.image.BufferedImage outputImage)
public void drawSelection(RenderingContext c, InlineText inlineText)
drawSelection
in interface OutputDevice
public void drawBorderLine(java.awt.Rectangle bounds, int side, int lineWidth, boolean solid)
drawBorderLine
in interface OutputDevice
public void paintReplacedElement(RenderingContext c, BlockBox box)
paintReplacedElement
in interface OutputDevice
public void setColor(FSColor color)
setColor
in interface OutputDevice
public void drawRect(int x, int y, int width, int height)
drawRect
in interface OutputDevice
public void fillRect(int x, int y, int width, int height)
fillRect
in interface OutputDevice
public void setClip(java.awt.Shape s)
setClip
in interface OutputDevice
public java.awt.Shape getClip()
getClip
in interface OutputDevice
public void clip(java.awt.Shape s)
clip
in interface OutputDevice
public void translate(double tx, double ty)
translate
in interface OutputDevice
public java.awt.Graphics2D getGraphics()
public void drawOval(int x, int y, int width, int height)
drawOval
in interface OutputDevice
public void fillOval(int x, int y, int width, int height)
fillOval
in interface OutputDevice
public java.lang.Object getRenderingHint(java.awt.RenderingHints.Key key)
getRenderingHint
in interface OutputDevice
public void setRenderingHint(java.awt.RenderingHints.Key key, java.lang.Object value)
setRenderingHint
in interface OutputDevice
public void setFont(FSFont font)
setFont
in interface OutputDevice
public void setStroke(java.awt.Stroke s)
setStroke
in interface OutputDevice
public java.awt.Stroke getStroke()
getStroke
in interface OutputDevice
public void fill(java.awt.Shape s)
fill
in interface OutputDevice
public void drawImage(FSImage image, int x, int y)
drawImage
in interface OutputDevice
public boolean isSupportsSelection()
isSupportsSelection
in interface OutputDevice
public boolean isSupportsCMYKColors()
isSupportsCMYKColors
in interface OutputDevice