Package com.github.weisj.jsvg.renderer
Class Graphics2DOutput
java.lang.Object
com.github.weisj.jsvg.renderer.Graphics2DOutput
- All Implemented Interfaces:
Output
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.renderer.Output
Output.SafeState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapplyOpacity(float opacity) voidapplyTransform(@NotNull AffineTransform transform) @NotNull Rectangle2D@NotNull OutputfloatvoiddebugPaint(@NotNull Consumer<Graphics2D> painter) voiddispose()voiddrawImage(@NotNull BufferedImage image) voiddrawImage(@NotNull Image image, @NotNull AffineTransform at, @Nullable ImageObserver observer) voiddrawImage(@NotNull Image image, @Nullable ImageObserver observer) voidvoid@NotNull Graphics2Dgraphics()boolean@Nullable ObjectrenderingHint(@NotNull RenderingHints.Key key) @NotNull RenderingHintsvoidrotate(double angle) @NotNull Output.SafeStatevoidscale(double sx, double sy) voidvoidSet the paint used for the output.voidvoidsetRenderingHint(@NotNull RenderingHints.Key key, @Nullable Object value) voidvoidsetTransform(@NotNull AffineTransform affineTransform) @NotNull Strokestroke()booleanboolean@NotNull AffineTransformvoidtranslate(double dx, double dy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.weisj.jsvg.renderer.Output
isSoftClippingEnabled
-
Constructor Details
-
Graphics2DOutput
-
-
Method Details
-
graphics
-
fillShape
-
drawShape
-
drawImage
-
drawImage
-
drawImage
public void drawImage(@NotNull @NotNull Image image, @NotNull @NotNull AffineTransform at, @Nullable @Nullable ImageObserver observer) -
setPaint
-
setPaint
Description copied from interface:OutputSet the paint used for the output. Use this version if computing the paint is expensive. Outputs which don't support paints can avoid the computation. -
setStroke
-
stroke
-
applyClip
-
setClip
-
contextFontSize
- Specified by:
contextFontSizein interfaceOutput
-
createChild
- Specified by:
createChildin interfaceOutput
-
dispose
public void dispose() -
debugPaint
- Specified by:
debugPaintin interfaceOutput
-
clipBounds
- Specified by:
clipBoundsin interfaceOutput
-
renderingHints
- Specified by:
renderingHintsin interfaceOutput
-
renderingHint
- Specified by:
renderingHintin interfaceOutput
-
setRenderingHint
- Specified by:
setRenderingHintin interfaceOutput
-
transform
-
setTransform
- Specified by:
setTransformin interfaceOutput
-
applyTransform
- Specified by:
applyTransformin interfaceOutput
-
rotate
public void rotate(double angle) -
scale
public void scale(double sx, double sy) -
translate
public void translate(double dx, double dy) -
currentOpacity
public float currentOpacity()- Specified by:
currentOpacityin interfaceOutput
-
applyOpacity
public void applyOpacity(float opacity) - Specified by:
applyOpacityin interfaceOutput
-
hasMaskedPaint
public boolean hasMaskedPaint()- Specified by:
hasMaskedPaintin interfaceOutput
-
safeState
-
supportsFilters
public boolean supportsFilters()- Specified by:
supportsFiltersin interfaceOutput
-
supportsColors
public boolean supportsColors()- Specified by:
supportsColorsin interfaceOutput
-