Class CompositeRable8Bit

    • Constructor Detail

      • CompositeRable8Bit

        public CompositeRable8Bit​(java.util.List srcs,
                                  CompositeRule rule,
                                  boolean csIsLinear)
    • Method Detail

      • setSources

        public void setSources​(java.util.List srcs)
        The sources to be composited togeather.
        Specified by:
        setSources in interface CompositeRable
        Parameters:
        srcs - The list of images to be composited by the composite rule.
      • setCompositeRule

        public void setCompositeRule​(CompositeRule cr)
        Set the composite rule to use for combining the sources.
        Specified by:
        setCompositeRule in interface CompositeRable
        Parameters:
        cr - Composite rule to use.
      • getCompositeRule

        public CompositeRule getCompositeRule()
        Get the composite rule in use for combining the sources.
        Specified by:
        getCompositeRule in interface CompositeRable
        Returns:
        Composite rule currently in use.
      • paintRable

        public boolean paintRable​(java.awt.Graphics2D g2d)
        Should perform the equivilent action as createRendering followed by drawing the RenderedImage to Graphics2D, or return false.
        Specified by:
        paintRable in interface PaintRable
        Parameters:
        g2d - The Graphics2D to draw to.
        Returns:
        true if the paint call succeeded, false if for some reason the paint failed (in which case a createRendering should be used).
      • createRendering

        public java.awt.image.RenderedImage createRendering​(java.awt.image.renderable.RenderContext rc)
        Specified by:
        createRendering in interface java.awt.image.renderable.RenderableImage