Interface Output

All Known Implementing Classes:
Graphics2DOutput, ShapeOutput

public interface Output
  • Method Details

    • fillShape

      void fillShape(@NotNull @NotNull Shape shape)
    • drawShape

      void drawShape(@NotNull @NotNull Shape shape)
    • drawImage

      void drawImage(@NotNull @NotNull BufferedImage image)
    • drawImage

      void drawImage(@NotNull @NotNull Image image, @Nullable @Nullable ImageObserver observer)
    • drawImage

      void drawImage(@NotNull @NotNull Image image, @NotNull @NotNull AffineTransform at, @Nullable @Nullable ImageObserver observer)
    • setPaint

      void setPaint(@NotNull @NotNull Paint paint)
    • setPaint

      void setPaint(@NotNull @NotNull Provider<Paint> paintProvider)
      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.
      Parameters:
      paintProvider - The paint provider.
    • setStroke

      void setStroke(@NotNull @NotNull Stroke stroke)
    • stroke

      @NotNull @NotNull Stroke stroke()
    • applyClip

      void applyClip(@NotNull @NotNull Shape clipShape)
    • setClip

      void setClip(@Nullable @Nullable Shape shape)
    • contextFontSize

      Optional<Float> contextFontSize()
    • createChild

      @NotNull @NotNull Output createChild()
    • dispose

      void dispose()
    • debugPaint

      void debugPaint(@NotNull @NotNull Consumer<Graphics2D> painter)
    • clipBounds

      @NotNull @NotNull Rectangle2D clipBounds()
    • renderingHints

      @Nullable @Nullable RenderingHints renderingHints()
    • renderingHint

      @Nullable @Nullable Object renderingHint(@NotNull RenderingHints.Key key)
    • setRenderingHint

      void setRenderingHint(@NotNull RenderingHints.Key key, @Nullable @Nullable Object value)
    • transform

      @NotNull @NotNull AffineTransform transform()
    • setTransform

      void setTransform(@NotNull @NotNull AffineTransform affineTransform)
    • applyTransform

      void applyTransform(@NotNull @NotNull AffineTransform transform)
    • 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

      @NotNull @NotNull Output.SafeState safeState()
    • supportsFilters

      boolean supportsFilters()
    • supportsColors

      boolean supportsColors()
    • isSoftClippingEnabled

      default boolean isSoftClippingEnabled()
    • hasMaskedPaint

      default boolean hasMaskedPaint()