svn commit: r18579 - trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigAcceptEventPoly.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bobtarling
Date: 2010-07-25 15:06:10-0700
New Revision: 18579
Modified:
trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigAcceptEventPoly.java
Log:
JavaDoc
Modified: trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigAcceptEventPoly.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigAcceptEventPoly.java?view=diff&pathrev=18579&r1=18578&r2=18579
==============================================================================
--- trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigAcceptEventPoly.java (original)
+++ trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigAcceptEventPoly.java 2010-07-25 15:06:10-0700
@@ -46,6 +46,12 @@
super(p);
}
+ /**
+ * This overrides the behaviour of FigGravityPoly in that the closest point
+ * on the left of the fig is where a horizontal line from anotherPt would
+ * intersect this Fig. This prevents an edge from attaching to a point
+ * on a convex polygon where it would look better connecting to the edge.
+ */
@Override
public Point getClosestPoint(Point anotherPt) {
if (anotherPt.x < getX() && anotherPt.y >= getY() && anotherPt.y < getY() + getHeight()) {
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2638018
To unsubscribe from this discussion, e-mail: [[email protected]].