Class ParallelLinesFiller


  • public class ParallelLinesFiller
    extends Object
    Support class that fills a given rectangle with a set of parallel lines derived from a sample mark that would generate sets of parallel lines when tiled
    Author:
    Andrea Aime
    • Constructor Summary

      Constructors 
      Constructor Description
      ParallelLinesFiller​(List<ParallelLinesFiller.Line> lines, double xStep, double yStep)  
    • Constructor Detail

      • ParallelLinesFiller

        public ParallelLinesFiller​(List<ParallelLinesFiller.Line> lines,
                                   double xStep,
                                   double yStep)
    • Method Detail

      • fromStipple

        public static ParallelLinesFiller fromStipple​(Shape shape)
        Builds a line filler from a stipple shape, if at all possible, or returns null otherwise
      • fillRectangle

        public void fillRectangle​(Rectangle2D bounds,
                                  StyledShapePainter painter,
                                  Graphics2D graphics,
                                  LineStyle2D ls2d)
        Fills the specified rectangle with parallel lines