Package | com.yworks.yfiles.layout.router.polyline |
Class | public class Obstacle |
Inheritance | Obstacle YObject Object |
See also
Property | Defined By | ||
---|---|---|---|
bounds : YRectangle [read-only]
Returns the bounds of the obstacle. | Obstacle | ||
data : Object [read-only]
Returns the additional data related to the obstacle. | Obstacle |
Method | Defined By | ||
---|---|---|---|
Obstacle(bounds:YRectangle, data:Object, init:Boolean = true)
Creates a new instance. | Obstacle | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | Obstacle | ||
hashCode():int | YObject | ||
[static]
Creates a new instance. | Obstacle |
Method | Defined By | ||
---|---|---|---|
initObstacle(bounds:YRectangle, data:Object):void
Initializes this object. | Obstacle |
bounds | property |
bounds:YRectangle
[read-only] Returns the bounds of the obstacle.
public function get bounds():YRectangle
data | property |
data:Object
[read-only] Returns the additional data related to the obstacle.
public function get data():Object
Obstacle | () | Constructor |
public function Obstacle(bounds:YRectangle, data:Object, init:Boolean = true)
Creates a new instance.
Parametersbounds:YRectangle — The bounds of the obstacle.
| |
data:Object — The additional data related to the obstacle.
| |
init:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initObstacle | () | method |
protected final function initObstacle(bounds:YRectangle, data:Object):void
Initializes this object. See the documentation of the corresponding factory method newObstacle()
for details.
Parameters
bounds:YRectangle | |
data:Object |
See also
newObstacle | () | method |
public static function newObstacle(bounds:YRectangle, data:Object):Obstacle
Creates a new instance.
Parameters
bounds:YRectangle — The bounds of the obstacle.
| |
data:Object — The additional data related to the obstacle.
|
Obstacle |