java.lang.Object
org.openpdf.render.AbstractOutputDevice
org.openpdf.swing.Java2DOutputDevice
- All Implemented Interfaces:
OutputDevice
-
Constructor Summary
ConstructorsConstructorDescriptionJava2DOutputDevice(Graphics2D graphics) Java2DOutputDevice(BufferedImage outputImage) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddrawBorderLine(Shape bounds, int side, int lineWidth, boolean solid) voidprotected voiddrawLine(int x1, int y1, int x2, int y2) voiddrawLinearGradient(FSLinearGradient gradient, int x, int y, int width, int height) voiddrawOval(int x, int y, int width, int height) voiddrawRect(int x, int y, int width, int height) voiddrawSelection(RenderingContext c, InlineText inlineText) voidvoidfillOval(int x, int y, int width, int height) voidfillRect(int x, int y, int width, int height) @Nullable ShapegetClip()@Nullable ObjectbooleanbooleanvoidvoidvoidvoidvoidsetOpacity(float opacity) voidsetRenderingHint(RenderingHints.Key key, Object value) voidvoidtranslate(double tx, double ty) Methods inherited from class org.openpdf.render.AbstractOutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openpdf.extend.OutputDevice
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
-
Constructor Details
-
Java2DOutputDevice
-
Java2DOutputDevice
-
-
Method Details
-
drawSelection
- Specified by:
drawSelectionin interfaceOutputDevice
-
drawBorderLine
- Specified by:
drawBorderLinein interfaceOutputDevice
-
paintReplacedElement
- Specified by:
paintReplacedElementin interfaceOutputDevice
-
setOpacity
public void setOpacity(float opacity) - Specified by:
setOpacityin interfaceOutputDevice
-
setColor
- Specified by:
setColorin interfaceOutputDevice
-
drawLine
protected void drawLine(int x1, int y1, int x2, int y2) - Specified by:
drawLinein classAbstractOutputDevice
-
drawRect
public void drawRect(int x, int y, int width, int height) - Specified by:
drawRectin interfaceOutputDevice
-
fillRect
public void fillRect(int x, int y, int width, int height) - Specified by:
fillRectin interfaceOutputDevice
-
setClip
- Specified by:
setClipin interfaceOutputDevice
-
getClip
- Specified by:
getClipin interfaceOutputDevice
-
clip
- Specified by:
clipin interfaceOutputDevice
-
translate
public void translate(double tx, double ty) - Specified by:
translatein interfaceOutputDevice
-
getGraphics
-
drawOval
public void drawOval(int x, int y, int width, int height) - Specified by:
drawOvalin interfaceOutputDevice
-
fillOval
public void fillOval(int x, int y, int width, int height) - Specified by:
fillOvalin interfaceOutputDevice
-
getRenderingHint
- Specified by:
getRenderingHintin interfaceOutputDevice
-
setRenderingHint
- Specified by:
setRenderingHintin interfaceOutputDevice
-
setFont
- Specified by:
setFontin interfaceOutputDevice
-
setStroke
- Specified by:
setStrokein interfaceOutputDevice
-
getStroke
- Specified by:
getStrokein interfaceOutputDevice
-
fill
- Specified by:
fillin interfaceOutputDevice
-
draw
- Specified by:
drawin interfaceOutputDevice
-
drawImage
- Specified by:
drawImagein interfaceOutputDevice
-
isSupportsSelection
public boolean isSupportsSelection()- Specified by:
isSupportsSelectionin interfaceOutputDevice
-
isSupportsCMYKColors
public boolean isSupportsCMYKColors()- Specified by:
isSupportsCMYKColorsin interfaceOutputDevice
-
drawLinearGradient
- Specified by:
drawLinearGradientin interfaceOutputDevice
-