Class Java2DOutputDevice

All Implemented Interfaces:
OutputDevice<AWTFSImage,AWTFSFont>

public class Java2DOutputDevice extends AbstractOutputDevice<AWTFSImage,AWTFSFont>
  • Constructor Details

    • Java2DOutputDevice

      public Java2DOutputDevice(Graphics2D graphics)
    • Java2DOutputDevice

      public Java2DOutputDevice(BufferedImage outputImage)
  • Method Details

    • drawSelection

      public void drawSelection(RenderingContext c, InlineText inlineText)
    • drawBorderLine

      public void drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)
    • paintReplacedElement

      public void paintReplacedElement(RenderingContext c, BlockBox box)
    • setOpacity

      public void setOpacity(float opacity)
    • setColor

      public void setColor(FSColor color)
    • drawLine

      protected void drawLine(int x1, int y1, int x2, int y2)
      Specified by:
      drawLine in class AbstractOutputDevice<AWTFSImage,AWTFSFont>
    • drawRect

      public void drawRect(int x, int y, int width, int height)
    • fillRect

      public void fillRect(int x, int y, int width, int height)
    • setClip

      public void setClip(Shape s)
    • getClip

      @CheckReturnValue public @Nullable Shape getClip()
    • clip

      public void clip(Shape s)
    • translate

      public void translate(double tx, double ty)
    • getGraphics

      public Graphics2D getGraphics()
    • drawOval

      public void drawOval(int x, int y, int width, int height)
    • fillOval

      public void fillOval(int x, int y, int width, int height)
    • getRenderingHint

      @CheckReturnValue public @Nullable Object getRenderingHint(RenderingHints.Key key)
    • setRenderingHint

      public void setRenderingHint(RenderingHints.Key key, Object value)
    • setFont

      public void setFont(AWTFSFont font)
    • setStroke

      public void setStroke(Stroke s)
    • getStroke

      public Stroke getStroke()
    • fill

      public void fill(Shape s)
    • draw

      public void draw(Shape s)
    • drawImage

      public void drawImage(AWTFSImage image, int x, int y)
    • isSupportsSelection

      public boolean isSupportsSelection()
    • isSupportsCMYKColors

      public boolean isSupportsCMYKColors()
    • drawLinearGradient

      public void drawLinearGradient(FSLinearGradient gradient, int x, int y, int width, int height)