Class EMapDetailsPanel.ContextUnitFilter

  • Enclosing class:
    EMapDetailsPanel

    public static class EMapDetailsPanel.ContextUnitFilter
    extends UnitFilter
    A unit filter that accepts units that are in all regions occuring in a given Selection context.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextUnitFilter​(java.util.List<?> context)
      Creates a filter that accepts units that are in all regions occuring in context.
    • Constructor Detail

      • ContextUnitFilter

        public ContextUnitFilter​(java.util.List<?> context)
        Creates a filter that accepts units that are in all regions occuring in context.
        Parameters:
        context -
    • Method Detail

      • acceptUnit

        public boolean acceptUnit​(Unit u)
        Description copied from class: UnitFilter
        Returns true fall accepted units.
        Specified by:
        acceptUnit in class UnitFilter