← Back to team overview

sikuli-driver team mailing list archive

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

 

Public bug reported:

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()))

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
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:
  New

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


Follow ups

References