Class ActionConfigRegionProvider

java.lang.Object
io.github.jspinak.brobot.action.internal.region.ActionConfigRegionProvider

@Component public class ActionConfigRegionProvider extends Object
Bridge between legacy ActionConfig and modern region resolution. Provides methods to extract and convert regions from ActionConfig configurations.
  • Constructor Details

    • ActionConfigRegionProvider

      public ActionConfigRegionProvider()
  • Method Details

    • getRegionsFromActionConfig

      public List<Region> getRegionsFromActionConfig(ActionConfig actionConfig)
      Get regions from ActionConfig for Find operations
    • convertToSearchRegions

      public List<StateRegion> convertToSearchRegions(ActionConfig actionConfig)
      Convert ActionConfig regions to StateRegion search regions
    • getPatternSearchRegions

      public List<Region> getPatternSearchRegions(ActionConfig actionConfig)
      Get regions specifically for pattern matching from ActionConfig
    • getStateImageSearchRegions

      public List<Region> getStateImageSearchRegions(ActionConfig actionConfig)
      Get regions specifically for StateImage searches from ActionConfig
    • hasSearchRegions

      public boolean hasSearchRegions(ActionConfig actionConfig)
      Check if ActionConfig has any search regions defined
    • mergeWithExistingRegions

      public List<Region> mergeWithExistingRegions(ActionConfig actionConfig, List<Region> existingRegions)
      Merge regions from ActionConfig with existing regions