|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.router.polyline.CellEntrance
public class CellEntrance
Describes where and from which direction a PartitionCell
has been entered during a path search.
The path to reach the cell can be reconstructed by traversing the previous entrances
.
The enter interval
and enter direction
determine how the
cell was entered.
Constructor Summary | |
---|---|
CellEntrance(CellEntrance other)
Creates a copy of the given CellEntrance . |
|
CellEntrance(PartitionCell cell)
Creates a new instance. |
Method Summary | |
---|---|
PartitionCell |
getCell()
Returns this entrance's partition cell. |
double |
getCosts()
Returns the costs for the implicit path given by the previous entrances . |
Direction |
getEnterDirection()
Returns the direction from which this cell was entered. |
OrthogonalInterval |
getEnterInterval()
Returns the OrthogonalInterval that was used to enter this cell. |
EdgeCellInfo |
getPreviousEdgeCellInfo()
Returns the EdgeCellInfo describing how the previous cell was crossed. |
CellEntrance |
getPreviousEntrance()
Returns the previous CellEntrance in the path that reached this cell. |
void |
setCosts(double costs)
Sets the costs for the implicit path given by the previous entrances . |
void |
setEnterDirection(Direction direction)
Sets the direction from which this cell was entered. |
void |
setEnterInterval(OrthogonalInterval interval)
Sets the OrthogonalInterval that was used to enter this cell. |
void |
setPreviousEdgeCellInfo(EdgeCellInfo previousEdgeCellInfo)
Sets the EdgeCellInfo describing how the previous cell was crossed. |
void |
setPreviousEntrance(CellEntrance previous)
Sets the previous CellEntrance in the path that reached this cell. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CellEntrance(PartitionCell cell)
cell
- The entered partition cell.public CellEntrance(CellEntrance other)
CellEntrance
.
other
- the CellEntrance
, of which a copy is to be madeMethod Detail |
---|
public String toString()
toString
in class Object
public PartitionCell getCell()
public CellEntrance getPreviousEntrance()
CellEntrance
in the path that reached this cell.
CellEntrance
in the path that reached this cell or null
if this
is a start entrance.public void setPreviousEntrance(CellEntrance previous)
CellEntrance
in the path that reached this cell.
previous
- The previous CellEntrance
in the path that reached this cell.public OrthogonalInterval getEnterInterval()
OrthogonalInterval
that was used to enter this cell.
OrthogonalInterval
that was used to enter this cell or null
if this is a start entrance.public void setEnterInterval(OrthogonalInterval interval)
OrthogonalInterval
that was used to enter this cell.
interval
- The OrthogonalInterval
that was used to enter this cell.public Direction getEnterDirection()
null
if this is a start entrance.public void setEnterDirection(Direction direction)
direction
- the direction from which this cell was enteredpublic double getCosts()
previous entrances
.
previous entrances
public void setCosts(double costs)
previous entrances
.
costs
- the costs for the implicit path given by the previous entrances
public EdgeCellInfo getPreviousEdgeCellInfo()
EdgeCellInfo
describing how the previous cell was crossed.
EdgeCellInfo
describing how the previous cell was crossed or null
if this
is a start entrance.public void setPreviousEdgeCellInfo(EdgeCellInfo previousEdgeCellInfo)
EdgeCellInfo
describing how the previous cell was crossed.
previousEdgeCellInfo
- The EdgeCellInfo
describing how the previous cell was crossed.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |