| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.router.polyline.EdgeCellInfo
public class EdgeCellInfo
This class encapsulates the information that determines the route of a specific item within a specific
 partition cell.
| Field Summary | |
|---|---|
| static byte | TYPE_BENDINGA routing type representing a crossing of the partition cellwith a single bend, i.e., the item
 enters the cell in one direction, makes a bend and exits the cell in an orthogonal direction. | 
| static byte | TYPE_ENDA routing type representing the source or target end of an item being in the cell, i.e., the enter and/or exit interval is null. | 
| static byte | TYPE_STRAIGHTA routing type representing a straight crossing of the partition cell, i.e., a single 
 orthogonal segment enters and exits the cell. | 
| static byte | TYPE_STRAIGHT_BENDINGA routing type representing a crossing of the partition cellwith three segments, i.e., the 
 item enters and exits the cell using the same direction but has an orthogonal middle segment between the
 entering and exiting segment. | 
| static byte | TYPE_U_TURNA routing type representing a crossing of the partition cellby making a U-turn, i.e., the 
 item enters and exits the cell on the same side using two turns and an orthogonal middle segment. | 
| Constructor Summary | |
|---|---|
| EdgeCellInfo(java.lang.Object item,
             PartitionCell cell,
             OrthogonalInterval enterInterval,
             OrthogonalInterval exitInterval,
             Direction enterDirection,
             Direction exitDirection,
             int enterSegmentNo)Creates a new EdgeCellInfoinstance. | |
| Method Summary | |
|---|---|
|  int | getBendCount()Returns the number of bends within this cell. | 
|  PartitionCell | getCell()Returns the partition cellwithin which the item is routed. | 
|  CellSegmentInfo[] | getCellSegmentInfos()Calculates the list of CellSegmentInfos for the segment parts that lie within the associatedpartition cell. | 
|  Direction | getEnterDirection()Returns the directionin which this cell is entered. | 
|  OrthogonalInterval | getEnterInterval()Returns the intervalthat is used to enter this cell. | 
|  SegmentGroup | getEnterSegmentGroup()Returns the segment groupcontaining the entering segment. | 
|  int | getEnterSegmentNo()Returns the index of the segment that enters this cell. | 
|  Direction | getExitDirection()Returns the directionin which this cell is exited. | 
|  OrthogonalInterval | getExitInterval()Returns the intervalthat is used to exit this cell. | 
|  SegmentGroup | getExitSegmentGroup()Returns the segment groupcontaining the exiting segment. | 
|  int | getExitSegmentNo()Returns the index of the segment that exits this cell. | 
|  java.lang.Object | getItem()Returns the item that is routed within the partition cell. | 
|  byte | getType()Returns the routing type within this cell. | 
|  void | setEnterSegmentGroup(SegmentGroup enterSegmentGroup)Specifies the segment groupcontaining the entering segment. | 
|  void | setEnterSegmentNo(int segmentNo)Specifies the index of the segment that enters this cell. | 
|  void | setExitSegmentGroup(SegmentGroup exitSegmentGroup)Specifies the segment groupcontaining the exiting segment. | 
|  void | setExitSegmentNo(int segmentNo)Specifies the index of the segment that exits this cell. | 
|  java.lang.String | toString()Returns a string representation of the shape while crossing the partition cell. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final byte TYPE_STRAIGHT
partition cell, i.e., a single 
 orthogonal segment enters and exits the cell.
getType(), 
Constant Field Valuespublic static final byte TYPE_STRAIGHT_BENDING
partition cell with three segments, i.e., the 
 item enters and exits the cell using the same direction but has an orthogonal middle segment between the
 entering and exiting segment.
getType(), 
Constant Field Valuespublic static final byte TYPE_BENDING
partition cell with a single bend, i.e., the item
 enters the cell in one direction, makes a bend and exits the cell in an orthogonal direction.
getType(), 
Constant Field Valuespublic static final byte TYPE_U_TURN
partition cell by making a U-turn, i.e., the 
 item enters and exits the cell on the same side using two turns and an orthogonal middle segment.
getType(), 
Constant Field Valuespublic static final byte TYPE_END
null.
getType(), 
Constant Field Values| Constructor Detail | 
|---|
public EdgeCellInfo(java.lang.Object item,
                    PartitionCell cell,
                    OrthogonalInterval enterInterval,
                    OrthogonalInterval exitInterval,
                    Direction enterDirection,
                    Direction exitDirection,
                    int enterSegmentNo)
EdgeCellInfo instance.
item - the item whose routing in the cell is describedcell - the cell in which the item is routedenterInterval - the interval that the item uses to enter the cellexitInterval - the interval that the item uses to exit the cellenterDirection - the direction in which the item enters the cellexitDirection - the direction in which the item exits the cellenterSegmentNo - the index of the item segment that enters the cell| Method Detail | 
|---|
public int getBendCount()
public java.lang.String toString()
partition cell.
toString in class java.lang.Objectpublic byte getType()
public int getEnterSegmentNo()
Values should be non-negative.
setEnterSegmentNo(int)public void setEnterSegmentNo(int segmentNo)
Values should be non-negative.
segmentNo - the index of the segment that enters this cell
java.lang.IllegalArgumentException - if the given index is negativepublic int getExitSegmentNo()
Values should be non-negative.
setExitSegmentNo(int)public void setExitSegmentNo(int segmentNo)
Values should be non-negative.
segmentNo - the index of the segment that exits this cell
java.lang.IllegalArgumentException - if the given index is negativepublic SegmentGroup getEnterSegmentGroup()
segment group containing the entering segment.
 
   When specifying the segment group, the enter interval is updated to use
   the segment group's common enter interval.
 
null if the entering segment does not 
         belong to a segment groupSegmentGroup.getCommonLocationRange(), 
setEnterSegmentGroup(SegmentGroup)public void setEnterSegmentGroup(SegmentGroup enterSegmentGroup)
segment group containing the entering segment.
 
   When specifying the segment group, the enter interval is updated to use
   the segment group's common enter interval.
 
segment group.enterSegmentGroup - the segment group containing the entering segmentSegmentGroup.getCommonLocationRange()public SegmentGroup getExitSegmentGroup()
segment group containing the exiting segment.
 
   When specifying the segment group, the exit interval is updated to use
   the segment group's common exit interval.
 
null if the exiting segment does not 
         belong to a segment groupSegmentGroup.getCommonLocationRange(), 
setExitSegmentGroup(SegmentGroup)public void setExitSegmentGroup(SegmentGroup exitSegmentGroup)
segment group containing the exiting segment.
 
   When specifying the segment group, the exit interval is updated to use
   the segment group's common exit interval.
 
segment group.exitSegmentGroup - the segment group containing the exiting segmentSegmentGroup.getCommonLocationRange()public java.lang.Object getItem()
partition cell.
 
   The item is either of type PathRequest or Edge.
 
public PartitionCell getCell()
partition cell within which the item is routed.
public OrthogonalInterval getEnterInterval()
interval that is used to enter this cell.
public OrthogonalInterval getExitInterval()
interval that is used to exit this cell.
public Direction getEnterDirection()
direction in which this cell is entered.
public Direction getExitDirection()
direction in which this cell is exited.
public CellSegmentInfo[] getCellSegmentInfos()
CellSegmentInfos for the segment parts that lie within the associated
 partition cell.
CellSegmentInfos for the segment parts that lie within the associated partition cell.| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||