Search this API

y.layout.router.polyline
Class Obstacle

java.lang.Object
  extended by y.layout.router.polyline.Obstacle

public class Obstacle
extends Object

Obstacles are used by implementations of ObstaclePartition to subdivide an area into PartitionCells.


Constructor Summary
Obstacle(YRectangle bounds, Object data)
          Creates a new instance.
 
Method Summary
 YRectangle getBounds()
          Returns the bounds of the obstacle.
 Object getData()
          Returns the additional data related to the obstacle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Obstacle

public Obstacle(YRectangle bounds,
                Object data)
Creates a new instance.

Parameters:
bounds - The bounds of the obstacle.
data - The additional data related to the obstacle.
Method Detail

getBounds

public YRectangle getBounds()
Returns the bounds of the obstacle.

Returns:
The bounds of the obstacle.

getData

public Object getData()
Returns the additional data related to the obstacle.

Returns:
the additional data related to the obstacle.

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