Search this API

y.layout
Class IntersectionInfo

java.lang.Object
  extended by y.layout.IntersectionInfo

public class IntersectionInfo
extends java.lang.Object

An info object that describes an intersection between two graph items.

 

Method Summary
 java.util.List getIntersectionPoints()
          Returns a list of YPoints that describe the intersecting area or line.
 java.lang.Object getItem1()
          Returns the first item that is involved in the intersection.
 java.lang.Object getItem2()
          Returns the second item that is involved in the intersection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getItem1

public java.lang.Object getItem1()
Returns the first item that is involved in the intersection. Items can be Nodes, Edges, LabelLayouts, LabelLayoutDatas.

Returns:
the first item

getItem2

public java.lang.Object getItem2()
Returns the second item that is involved in the intersection. Items can be Nodes, Edges, LabelLayouts, LabelLayoutDatas.

Returns:
the second item

getIntersectionPoints

public java.util.List getIntersectionPoints()
Returns a list of YPoints that describe the intersecting area or line. If the list contains two points, the overlap includes all points on the line formed by these points. In case there are more intersection points, they are sorted to form a convex polygon containing the overlapping area.

Returns:
a list of intersection points
Sample Graphs:

Intersection between two nodes

Intersections between edges and nodes

Intersection between a node and a label

© Copyright 2000-2025,
yWorks GmbH.
All rights reserved.