Class Selector.StartingContext

  • Enclosing interface:
    Selector

    public static final class Selector.StartingContext
    extends java.lang.Object
    Starting environment context object used when evaluating a selector.
    • Constructor Summary

      Constructors 
      Constructor Description
      StartingContext()
      Create a StartingContext that sends all shapes in a Model through the Selector.
      StartingContext​(java.util.Collection<? extends Shape> startingShapes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<? extends Shape> getStartingShapes()
      Get the potentially null set of starting shapes to provide to the selector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StartingContext

        public StartingContext()
        Create a StartingContext that sends all shapes in a Model through the Selector.
      • StartingContext

        public StartingContext​(java.util.Collection<? extends Shape> startingShapes)
        Parameters:
        startingShapes - A specific set of shapes to send through the Selector rather than all Model shapes.
    • Method Detail

      • getStartingShapes

        public java.util.Collection<? extends Shape> getStartingShapes()
        Get the potentially null set of starting shapes to provide to the selector.
        Returns:
        Returns the custom set starting shapes to provide to the selector.