Class DrawingGlyph

java.lang.Object
uk.ac.starlink.ttools.plot2.layer.DrawingGlyph
All Implemented Interfaces:
Glyph
Direct Known Subclasses:
LineGlyph

public abstract class DrawingGlyph extends Object implements Glyph
Abstract Glyph subclass that uses a PixelDrawing.
Since:
7 Oct 2021
Author:
Mark Taylor
  • Constructor Details

    • DrawingGlyph

      public DrawingGlyph()
  • Method Details

    • createPixerFactory

      public abstract PixelDrawing createPixerFactory(Rectangle clip)
      Returns a drawing that can dispense pixers for this glyph.
      Parameters:
      clip - clip shape
    • createPixer

      public final Pixer createPixer(Rectangle clip)
      Description copied from interface: Glyph
      Returns an iterator over pixel offsets for this glyph's shape, considered to be at the origin. Typically this means the pixel collection is centred at that point. The returned iterator must not include any points outside of the given clip rectangle. A null return indicates that no pixels fall within the given clip.
      Specified by:
      createPixer in interface Glyph
      Parameters:
      clip - clip rectangle
      Returns:
      pixel iterator for the intersection of this glyph's shape and the given clip, or null for no pixels