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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
applyOpacity
(float opacity) void
applyTransform
(@NotNull AffineTransform transform) @NotNull Rectangle2D
@NotNull Output
float
void
debugPaint
(@NotNull Consumer<Graphics2D> painter) void
dispose()
void
drawImage
(@NotNull Image image, @NotNull AffineTransform at, @Nullable ImageObserver observer) void
drawImage
(@NotNull Image image, @Nullable ImageObserver observer) void
drawImage
(@NotNull BufferedImage image) void
void
@NotNull Graphics2D
graphics()
boolean
@Nullable Object
renderingHint
(@NotNull RenderingHints.Key key) @NotNull RenderingHints
void
rotate
(double angle) @NotNull Output.SafeState
void
scale
(double sx, double sy) void
void
Set the paint used for the output.void
void
setRenderingHint
(@NotNull RenderingHints.Key key, @Nullable Object value) void
void
setTransform
(@NotNull AffineTransform affineTransform) @NotNull Stroke
stroke()
boolean
boolean
@NotNull AffineTransform
void
translate
(double dx, double dy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.weisj.jsvg.renderer.Output
isSoftClippingEnabled
-
Field Details
-
g
-
-
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:Output
Set 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:
contextFontSize
in interfaceOutput
-
createChild
- Specified by:
createChild
in interfaceOutput
-
dispose
public void dispose() -
debugPaint
- Specified by:
debugPaint
in interfaceOutput
-
clipBounds
- Specified by:
clipBounds
in interfaceOutput
-
renderingHints
- Specified by:
renderingHints
in interfaceOutput
-
renderingHint
- Specified by:
renderingHint
in interfaceOutput
-
setRenderingHint
- Specified by:
setRenderingHint
in interfaceOutput
-
transform
-
setTransform
- Specified by:
setTransform
in interfaceOutput
-
applyTransform
- Specified by:
applyTransform
in 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:
currentOpacity
in interfaceOutput
-
applyOpacity
public void applyOpacity(float opacity) - Specified by:
applyOpacity
in interfaceOutput
-
hasMaskedPaint
public boolean hasMaskedPaint()- Specified by:
hasMaskedPaint
in interfaceOutput
-
safeState
-
supportsFilters
public boolean supportsFilters()- Specified by:
supportsFilters
in interfaceOutput
-
supportsColors
public boolean supportsColors()- Specified by:
supportsColors
in interfaceOutput
-