Package com.openhtmltopdf.java2d
Class Java2DOutputDevice
- java.lang.Object
-
- com.openhtmltopdf.render.AbstractOutputDevice
-
- com.openhtmltopdf.java2d.Java2DOutputDevice
-
- All Implemented Interfaces:
com.openhtmltopdf.extend.OutputDevice
public class Java2DOutputDevice extends com.openhtmltopdf.render.AbstractOutputDevice implements com.openhtmltopdf.extend.OutputDevice
-
-
Constructor Summary
Constructors Constructor Description Java2DOutputDevice(Graphics2D layoutGraphics)
-
Method Summary
Modifier and Type Method Description void
clip(Shape s)
void
draw(Shape s)
void
drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)
void
drawImage(com.openhtmltopdf.extend.FSImage image, int x, int y, boolean interpolate)
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(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.InlineText inlineText)
Deprecated.void
drawWithGraphics(float x, float y, float width, float height, com.openhtmltopdf.extend.OutputDeviceGraphicsDrawer renderer)
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)
void
finish(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox _root)
float
getAbsoluteTransformOriginX()
float
getAbsoluteTransformOriginY()
Shape
getClip()
Java2DFont
getFont()
Graphics2D
getGraphics()
Object
getRenderingHint(RenderingHints.Key key)
Stroke
getStroke()
void
initializePage(Graphics2D pageGraphics)
boolean
isFastRenderer()
boolean
isSupportsCMYKColors()
boolean
isSupportsSelection()
void
paintReplacedElement(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox box)
void
popClip()
void
popTransformLayer()
void
popTransforms(List<AffineTransform> inverse)
void
pushClip(Shape s)
void
pushTransformLayer(AffineTransform transform)
List<AffineTransform>
pushTransforms(List<AffineTransform> transforms)
void
setBidiReorderer(com.openhtmltopdf.bidi.BidiReorderer _reorderer)
void
setClip(Shape s)
void
setColor(com.openhtmltopdf.css.parser.FSColor color)
void
setFont(com.openhtmltopdf.render.FSFont font)
void
setPaint(Paint paint)
void
setRenderingContext(com.openhtmltopdf.render.RenderingContext result)
void
setRenderingHint(RenderingHints.Key key, Object value)
void
setRoot(com.openhtmltopdf.render.BlockBox _root)
void
setStroke(Stroke s)
Object
startStructure(com.openhtmltopdf.extend.StructureType type, com.openhtmltopdf.render.Box box)
void
translate(double tx, double ty)
-
Methods inherited from class com.openhtmltopdf.render.AbstractOutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, isPDF, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecification
-
-
-
-
Constructor Detail
-
Java2DOutputDevice
public Java2DOutputDevice(Graphics2D layoutGraphics)
-
-
Method Detail
-
drawSelection
@Deprecated public void drawSelection(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.InlineText inlineText)
Deprecated.- Specified by:
drawSelection
in interfacecom.openhtmltopdf.extend.OutputDevice
-
drawBorderLine
public void drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)
- Specified by:
drawBorderLine
in interfacecom.openhtmltopdf.extend.OutputDevice
-
paintReplacedElement
public void paintReplacedElement(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox box)
- Specified by:
paintReplacedElement
in interfacecom.openhtmltopdf.extend.OutputDevice
-
setColor
public void setColor(com.openhtmltopdf.css.parser.FSColor color)
- Specified by:
setColor
in interfacecom.openhtmltopdf.extend.OutputDevice
-
drawLine
protected void drawLine(int x1, int y1, int x2, int y2)
- Specified by:
drawLine
in classcom.openhtmltopdf.render.AbstractOutputDevice
-
drawRect
public void drawRect(int x, int y, int width, int height)
- Specified by:
drawRect
in interfacecom.openhtmltopdf.extend.OutputDevice
-
fillRect
public void fillRect(int x, int y, int width, int height)
- Specified by:
fillRect
in interfacecom.openhtmltopdf.extend.OutputDevice
-
setClip
public void setClip(Shape s)
- Specified by:
setClip
in interfacecom.openhtmltopdf.extend.OutputDevice
-
getClip
public Shape getClip()
- Specified by:
getClip
in interfacecom.openhtmltopdf.extend.OutputDevice
-
clip
public void clip(Shape s)
- Specified by:
clip
in interfacecom.openhtmltopdf.extend.OutputDevice
-
translate
public void translate(double tx, double ty)
- Specified by:
translate
in interfacecom.openhtmltopdf.extend.OutputDevice
-
getGraphics
public Graphics2D getGraphics()
-
drawOval
public void drawOval(int x, int y, int width, int height)
- Specified by:
drawOval
in interfacecom.openhtmltopdf.extend.OutputDevice
-
fillOval
public void fillOval(int x, int y, int width, int height)
- Specified by:
fillOval
in interfacecom.openhtmltopdf.extend.OutputDevice
-
getRenderingHint
public Object getRenderingHint(RenderingHints.Key key)
- Specified by:
getRenderingHint
in interfacecom.openhtmltopdf.extend.OutputDevice
-
setRenderingHint
public void setRenderingHint(RenderingHints.Key key, Object value)
- Specified by:
setRenderingHint
in interfacecom.openhtmltopdf.extend.OutputDevice
-
setFont
public void setFont(com.openhtmltopdf.render.FSFont font)
- Specified by:
setFont
in interfacecom.openhtmltopdf.extend.OutputDevice
-
getFont
public Java2DFont getFont()
-
setStroke
public void setStroke(Stroke s)
- Specified by:
setStroke
in interfacecom.openhtmltopdf.extend.OutputDevice
-
getStroke
public Stroke getStroke()
- Specified by:
getStroke
in interfacecom.openhtmltopdf.extend.OutputDevice
-
fill
public void fill(Shape s)
- Specified by:
fill
in interfacecom.openhtmltopdf.extend.OutputDevice
-
draw
public void draw(Shape s)
- Specified by:
draw
in interfacecom.openhtmltopdf.extend.OutputDevice
-
drawImage
public void drawImage(com.openhtmltopdf.extend.FSImage image, int x, int y, boolean interpolate)
- Specified by:
drawImage
in interfacecom.openhtmltopdf.extend.OutputDevice
-
isSupportsSelection
public boolean isSupportsSelection()
- Specified by:
isSupportsSelection
in interfacecom.openhtmltopdf.extend.OutputDevice
-
isSupportsCMYKColors
public boolean isSupportsCMYKColors()
- Specified by:
isSupportsCMYKColors
in interfacecom.openhtmltopdf.extend.OutputDevice
-
drawWithGraphics
public void drawWithGraphics(float x, float y, float width, float height, com.openhtmltopdf.extend.OutputDeviceGraphicsDrawer renderer)
- Specified by:
drawWithGraphics
in interfacecom.openhtmltopdf.extend.OutputDevice
-
setPaint
public void setPaint(Paint paint)
- Specified by:
setPaint
in interfacecom.openhtmltopdf.extend.OutputDevice
-
pushTransforms
public List<AffineTransform> pushTransforms(List<AffineTransform> transforms)
- Specified by:
pushTransforms
in interfacecom.openhtmltopdf.extend.OutputDevice
-
popTransforms
public void popTransforms(List<AffineTransform> inverse)
- Specified by:
popTransforms
in interfacecom.openhtmltopdf.extend.OutputDevice
-
getAbsoluteTransformOriginX
public float getAbsoluteTransformOriginX()
- Specified by:
getAbsoluteTransformOriginX
in interfacecom.openhtmltopdf.extend.OutputDevice
-
getAbsoluteTransformOriginY
public float getAbsoluteTransformOriginY()
- Specified by:
getAbsoluteTransformOriginY
in interfacecom.openhtmltopdf.extend.OutputDevice
-
setBidiReorderer
public void setBidiReorderer(com.openhtmltopdf.bidi.BidiReorderer _reorderer)
-
setRenderingContext
public void setRenderingContext(com.openhtmltopdf.render.RenderingContext result)
-
setRoot
public void setRoot(com.openhtmltopdf.render.BlockBox _root)
-
initializePage
public void initializePage(Graphics2D pageGraphics)
-
finish
public void finish(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.BlockBox _root)
-
pushTransformLayer
public void pushTransformLayer(AffineTransform transform)
- Specified by:
pushTransformLayer
in interfacecom.openhtmltopdf.extend.OutputDevice
-
popTransformLayer
public void popTransformLayer()
- Specified by:
popTransformLayer
in interfacecom.openhtmltopdf.extend.OutputDevice
-
popClip
public void popClip()
- Specified by:
popClip
in interfacecom.openhtmltopdf.extend.OutputDevice
-
pushClip
public void pushClip(Shape s)
- Specified by:
pushClip
in interfacecom.openhtmltopdf.extend.OutputDevice
-
isFastRenderer
public boolean isFastRenderer()
- Specified by:
isFastRenderer
in interfacecom.openhtmltopdf.extend.OutputDevice
-
startStructure
public Object startStructure(com.openhtmltopdf.extend.StructureType type, com.openhtmltopdf.render.Box box)
- Specified by:
startStructure
in interfacecom.openhtmltopdf.extend.OutputDevice
-
endStructure
public void endStructure(Object token)
- Specified by:
endStructure
in interfacecom.openhtmltopdf.extend.OutputDevice
-
-