Class DrawingGlyph
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.DrawingGlyph
- All Implemented Interfaces:
Glyph
- Direct Known Subclasses:
LineGlyph
Abstract Glyph subclass that uses a PixelDrawing.
- Since:
- 7 Oct 2021
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Pixer
createPixer
(Rectangle clip) Returns an iterator over pixel offsets for this glyph's shape, considered to be at the origin.abstract PixelDrawing
createPixerFactory
(Rectangle clip) Returns a drawing that can dispense pixers for this glyph.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.starlink.ttools.plot2.Glyph
paintGlyph
-
Constructor Details
-
DrawingGlyph
public DrawingGlyph()
-
-
Method Details
-
createPixerFactory
Returns a drawing that can dispense pixers for this glyph.- Parameters:
clip
- clip shape
-
createPixer
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 interfaceGlyph
- Parameters:
clip
- clip rectangle- Returns:
- pixel iterator for the intersection of this glyph's shape and the given clip, or null for no pixels
-