java.lang.Object
com.marginallyclever.nodegraphcore.Node
com.marginallyclever.donatello.nodes.images.PrintImage
All Implemented Interfaces:
PrintWithGraphics

public class PrintImage
extends Node
implements PrintWithGraphics
This Node can print a BufferedImage using the Graphics context.
Since:
2022-02-23
  • Constructor Details

    • PrintImage

      public PrintImage()
      Constructor for subclasses to call.
    • PrintImage

      public PrintImage​(java.awt.image.BufferedImage img, double x, double y)
      Constructor that sets starting values.
      Parameters:
      img - the starting value.
      x - the starting value.
      y - the starting value.
  • Method Details

    • create

      public Node create()
      Description copied from class: Node
      Return one new instance of this type of Node. Override this method in derived classes.
      Specified by:
      create in class Node
      Returns:
      One new instance of this type of Node.
    • update

      public void update()
      Description copied from class: Node
      Override this method to provide the custom behavior of this node. Runs regardless of dirty inputs or outputs.
      Specified by:
      update in class Node
    • print

      public void print​(java.awt.Graphics g)
      Description copied from interface: PrintWithGraphics
      Called when the implementing class should paint.
      Specified by:
      print in interface PrintWithGraphics
      Parameters:
      g - the Graphics context.