Java Code Examples for org.netbeans.api.visual.anchor.Anchor#DIRECTION_ANY
The following examples show how to use
org.netbeans.api.visual.anchor.Anchor#DIRECTION_ANY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RectangularAnchor.java From netbeans with Apache License 2.0 | 6 votes |
public Result compute(Entry entry) { Point relatedLocation = getRelatedSceneLocation(); Point oppositeLocation = null; if (oppositeLocation == null) { oppositeLocation = getOppositeSceneLocation(entry); } Result boundaryIntersection = computeBoundaryIntersectionPoint(relatedLocation, oppositeLocation); if (boundaryIntersection == null) { return new Anchor.Result(relatedLocation, Anchor.DIRECTION_ANY); } return boundaryIntersection ; }
Example 2
Source File: CircularAnchor.java From netbeans with Apache License 2.0 | 5 votes |
public Result compute (Entry entry) { Point relatedLocation = getRelatedSceneLocation (); Point oppositeLocation = getOppositeSceneLocation (entry); double angle = Math.atan2 (oppositeLocation.y - relatedLocation.y, oppositeLocation.x - relatedLocation.x); Point location = new Point (relatedLocation.x + (int) (radius * Math.cos (angle)), relatedLocation.y + (int) (radius * Math.sin (angle))); return new Anchor.Result (location, Anchor.DIRECTION_ANY); // TODO - resolve direction }
Example 3
Source File: ConnectionAnchor.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public Result compute(Entry entry) { return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY); }
Example 4
Source File: ConnectionAnchor.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public Result compute(Entry entry) { return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY); }
Example 5
Source File: ConnectionAnchor.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public Result compute(Entry entry) { return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY); }
Example 6
Source File: FixedAnchor.java From netbeans with Apache License 2.0 | 4 votes |
public Result compute (Entry entry) { return new Result (location, Anchor.DIRECTION_ANY); }
Example 7
Source File: CenterAnchor.java From netbeans with Apache License 2.0 | 4 votes |
public Result compute (Entry entry) { return new Result (getRelatedSceneLocation (), Anchor.DIRECTION_ANY); }
Example 8
Source File: ConnectionAnchor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public Result compute(Entry entry) { return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY); }
Example 9
Source File: ConnectionAnchor.java From hottub with GNU General Public License v2.0 | 4 votes |
public Result compute(Entry entry) { return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY); }
Example 10
Source File: ConnectionAnchor.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Result compute(Entry entry) { return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY); }
Example 11
Source File: ConnectionAnchor.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public Result compute(Entry entry) { return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY); }