← Back to team overview

sikuli-driver team mailing list archive

[Bug 905400] Re: [request] want java rectangle features for Region (union, intersection, intersects, contains)

 

** Tags added: fkt-region

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/905400

Title:
  [request] want java rectangle features for Region (union,
  intersection, intersects, contains)

Status in Sikuli:
  Fix Committed

Bug description:
  based on
  https://github.com/sikuli/sikuli/issues/6

  and the Java docs
  http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html

  these features for the class Region would be helpful:

  --- return a new region or None
  Region.union(Region)
  Region.union(Location)
  Region.intersection(Region)

  --- return True or False
  Region.contains(Region)
  Region.intersects(Region)
  Region.contains(Location)

  Currently these features can be used by casting the Region object to a
  Java rectangle and back to a Region:

  regUnion = Region(r0.getRect().union(r1.getRect()))

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/905400/+subscriptions


References