|
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.Obstacle
public class Obstacle
This class describes the obstacles that are used by implementations of ObstaclePartition to subdivide an
area into PartitionCells.

| Constructor Summary | |
|---|---|
Obstacle(YRectangle bounds,
java.lang.Object data)
Creates a new Obstacle instance with the given bounds and additional data. |
|
| Method Summary | |
|---|---|
YRectangle |
getBounds()
Returns the bounds of the obstacle. |
double |
getCost()
Returns the cost penalty for entering this obstacle during a PathSearch. |
java.lang.Object |
getData()
Returns the additional data related to the obstacle. |
void |
setCost(double cost)
Specifies the cost penalty for entering this obstacle during a PathSearch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Obstacle(YRectangle bounds,
java.lang.Object data)
Obstacle instance with the given bounds and additional data.
bounds - the bounds of the obstacledata - the additional data associated to the obstacle| Method Detail |
|---|
public YRectangle getBounds()
YRectangle representing the bounds of the obstaclepublic java.lang.Object getData()
public double getCost()
PathSearch.
setCost(double)public void setCost(double cost)
PathSearch.
cost - the cost penalty for entering this obstacle
java.lang.IllegalArgumentException - if the cost is negative
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||