public class Java2DOutputDevice extends AbstractOutputDevice implements OutputDevice
Constructor and Description |
---|
Java2DOutputDevice(BufferedImage outputImage) |
Java2DOutputDevice(Graphics2D graphics) |
Modifier and Type | Method and Description |
---|---|
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) |
float |
getAbsoluteTransformOriginX() |
float |
getAbsoluteTransformOriginY() |
Shape |
getClip() |
AWTFSFont |
getFont() |
Graphics2D |
getGraphics() |
Shape |
getRawClip() |
Object |
getRenderingHint(RenderingHints.Key key) |
Stroke |
getStroke() |
boolean |
isSupportsCMYKColors() |
boolean |
isSupportsSelection() |
void |
paintReplacedElement(RenderingContext c,
BlockBox box) |
void |
popTransforms(List<AffineTransform> inverse) |
List<AffineTransform> |
pushTransforms(List<AffineTransform> transforms)
Apply the given transform on top of the current one in the PDF graphics stream.
|
void |
rawClip(Shape s) |
void |
restoreState() |
void |
saveState() |
void |
setAlpha(int alpha) |
void |
setClip(Shape s) |
void |
setColor(FSColor color) |
void |
setFont(FSFont font) |
void |
setPaint(Paint paint) |
void |
setRawClip(Shape s) |
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, setFontSpecification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
public Java2DOutputDevice(Graphics2D graphics)
public Java2DOutputDevice(BufferedImage outputImage)
public void drawSelection(RenderingContext c, InlineText inlineText)
drawSelection
in interface OutputDevice
public void drawBorderLine(Shape 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
protected void drawLine(int x1, int y1, int x2, int y2)
drawLine
in class AbstractOutputDevice
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(Shape s)
setClip
in interface OutputDevice
public Shape getClip()
getClip
in interface OutputDevice
public void clip(Shape s)
clip
in interface OutputDevice
public void translate(double tx, double ty)
translate
in interface OutputDevice
public 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 Object getRenderingHint(RenderingHints.Key key)
getRenderingHint
in interface OutputDevice
public void setRenderingHint(RenderingHints.Key key, Object value)
setRenderingHint
in interface OutputDevice
public void setFont(FSFont font)
setFont
in interface OutputDevice
public AWTFSFont getFont()
public void setStroke(Stroke s)
setStroke
in interface OutputDevice
public Stroke getStroke()
getStroke
in interface OutputDevice
public void fill(Shape s)
fill
in interface OutputDevice
public void draw(Shape s)
draw
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
public void saveState()
saveState
in interface OutputDevice
public void restoreState()
restoreState
in interface OutputDevice
public void setPaint(Paint paint)
setPaint
in interface OutputDevice
public void setAlpha(int alpha)
setAlpha
in interface OutputDevice
public void setRawClip(Shape s)
setRawClip
in interface OutputDevice
public void rawClip(Shape s)
rawClip
in interface OutputDevice
public Shape getRawClip()
getRawClip
in interface OutputDevice
public List<AffineTransform> pushTransforms(List<AffineTransform> transforms)
OutputDevice
pushTransforms
in interface OutputDevice
public void popTransforms(List<AffineTransform> inverse)
popTransforms
in interface OutputDevice
public float getAbsoluteTransformOriginX()
getAbsoluteTransformOriginX
in interface OutputDevice
public float getAbsoluteTransformOriginY()
getAbsoluteTransformOriginY
in interface OutputDevice
Copyright © 2017. All rights reserved.