Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 255247 Details for
Bug 472848
Figure.findMouseEventTargetInDescendantsAt() returns incorrect result
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Proposal
findMouseEventTargetInDescendantsAt.txt (text/plain), 1.05 KB, created by
Mike Marchand
on 2015-07-16 11:12:42 EDT
(
hide
)
Description:
Proposal
Filename:
MIME Type:
Creator:
Mike Marchand
Created:
2015-07-16 11:12:42 EDT
Size:
1.05 KB
patch
obsolete
> /** > * Searches this Figure's children for the deepest descendant for which > * {@link #isMouseEventTarget()} returns <code>true</code> and returns that > * descendant or <code>null</code> if none found. > * > * @see #findMouseEventTargetAt(int, int) > * @param x > * The X coordinate > * @param y > * The Y coordinate > * @return The deepest descendant for which isMouseEventTarget() returns > * true > */ > protected IFigure findMouseEventTargetInDescendantsAt(int x, int y) { > PRIVATE_POINT.setLocation(x, y); > translateFromParent(PRIVATE_POINT); > > if (!getClientArea(Rectangle.SINGLETON).contains(PRIVATE_POINT)) > return null; > > IFigure fig; > for (int i = children.size(); i > 0;) { > i--; > fig = (IFigure) children.get(i); > if (fig.isVisible() && fig.isEnabled()) { > if (fig.containsPoint(PRIVATE_POINT.x, PRIVATE_POINT.y)) { > fig = fig.findMouseEventTargetAt(PRIVATE_POINT.x, > PRIVATE_POINT.y); > if(fig != null) { > return fig; > } > } > } > } > return null; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
nyssen
:
iplog+
Actions:
View
Attachments on
bug 472848
: 255247