Interface Output
- All Known Implementing Classes:
Graphics2DOutput, NullOutput, ShapeOutput
public interface Output
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapplyOpacity(float opacity) voidapplyTransform(@NotNull AffineTransform transform) @NotNull Rectangle2D@NotNull Outputstatic @NotNull OutputcreateForGraphics(@NotNull Graphics2D g) Create a new output for the given graphics context.floatvoiddebugPaint(@NotNull Consumer<Graphics2D> painter) voiddispose()voiddrawImage(@NotNull Image image, @NotNull AffineTransform at, @Nullable ImageObserver observer) voiddrawImage(@NotNull Image image, @Nullable ImageObserver observer) voiddrawImage(@NotNull BufferedImage image) voidvoiddefault booleandefault boolean@Nullable Object@Nullable RenderingHintsvoidrotate(double angle) @NotNull Output.SafeStatevoidscale(double sx, double sy) voidvoidvoidSet the paint used for the output.voidsetRenderingHint(RenderingHints.Key key, @Nullable Object value) voidvoidsetTransform(@NotNull AffineTransform affineTransform) @NotNull Strokestroke()booleanbooleandefault @NotNull TextOutput@NotNull AffineTransformvoidtranslate(double dx, double dy)
-
Method Details
-
createForGraphics
Create a new output for the given graphics context. The output needs to be disposed after use.- Parameters:
g- The graphics context to create the output for.- Returns:
- The output for the given graphics context.
- See Also:
-
fillShape
-
drawShape
-
drawImage
-
drawImage
-
drawImage
void drawImage(@NotNull @NotNull Image image, @NotNull @NotNull AffineTransform at, @Nullable @Nullable ImageObserver observer) -
setPaint
-
setPaint
-
setStroke
-
stroke
-
applyClip
-
setClip
-
contextFontSize
-
createChild
-
dispose
void dispose() -
debugPaint
-
clipBounds
-
renderingHints
-
renderingHint
-
setRenderingHint
-
transform
-
setTransform
-
applyTransform
-
rotate
void rotate(double angle) -
scale
void scale(double sx, double sy) -
translate
void translate(double dx, double dy) -
currentOpacity
float currentOpacity() -
applyOpacity
void applyOpacity(float opacity) -
safeState
-
textOutput
-
supportsFilters
boolean supportsFilters() -
supportsColors
boolean supportsColors() -
isSoftClippingEnabled
default boolean isSoftClippingEnabled() -
hasMaskedPaint
default boolean hasMaskedPaint()
-