documentationfor yFiles for HTML 2.6

Usages of Interval

Properties

lengthIntervalin ChannelGets an interval spanning the union of the maximum extension of the segment infos.
widthIntervalin ChannelGets an interval spanning the union of the location ranges of the segment infos.
rangein OrthogonalIntervalGets the range of this orthogonal interval.
commonLocationRangein SegmentGroupGets the common location range for the segments in this group.
locationRangein SegmentInfoBaseGets the range, i.e., the interval within which the segment should be placed.
maxExtensionin SegmentInfoBaseGets the maximum extension that this segment can span.
minExtensionin SegmentInfoBaseGets the minimum known extension of the segment, i.e., the minimum interval that this segment will cover in any case.

Method Return Values

calculateBridge (Interval, Interval)in IntervalReturns the bridging interval between the given intervals.
calculateIntersection (Interval, Interval)in IntervalReturns the intersection of the given intervals.
calculateUnion (Interval, Interval)in IntervalReturns the union of the given intervals.
calculateUnion (Interval, number)in IntervalReturns the union of the given intervals and the given value.

Method Parameters

CellSegmentInfo (Object, number, Direction, Interval, Interval, Interval, PartitionCell)in CellSegmentInfoCreates a new CellSegmentInfo instance.
calculateBridge (Interval, Interval)in IntervalReturns the bridging interval between the given intervals.
calculateIntersection (Interval, Interval)in IntervalReturns the intersection of the given intervals.
calculateSpanningRectangle (Interval, Interval)in IntervalReturns the spanning rectangle between the given intervals.
calculateUnion (Interval, Interval)in IntervalReturns the union of the given intervals.
calculateUnion (Interval, number)in IntervalReturns the union of the given intervals and the given value.
coveredBy (Interval, number?)in IntervalChecks whether or not the given interval fully covers this interval given a small epsilon value.
distanceTo (Interval)in IntervalReturns the distance between this interval and the given interval.
hasSameRange (Interval, number?)in IntervalChecks whether or not this interval and the given interval cover the same range.
intersects (Interval, number?)in IntervalChecks whether or not this interval intersects with the given interval, considering the given minimum intersection length.
isGreaterThan (Interval)in IntervalChecks whether or not the lower bound of this interval is greater than the upper bound of the given interval.
isLessThan (Interval)in IntervalChecks whether or not the upper bound of this interval is smaller than the lower bound of the given interval.
OrthogonalInterval (Interval, number, boolean)in OrthogonalIntervalCreates a new OrthogonalInterval instance with the given interval bounds.
SegmentGroup (Interval, IList<Object>)in SegmentGroupCreates a new instance of SegmentGroup that contains the given segments and a range to place them.
SegmentInfo (Edge, number, Direction, Interval, Interval, Interval, IList<Object>)in SegmentInfoCreates a new instance of SegmentInfo with the given information.
SegmentInfoBase (Object, number, Direction, Interval, Interval, Interval)in SegmentInfoBaseCreates a new instance of SegmentInfoBase.