Search this API

y.layout.router.polyline
Class PartitionCell.PartitionCellBorder

java.lang.Object
  extended by y.layout.router.polyline.PartitionCell.PartitionCellBorder
Enclosing class:
PartitionCell

public static class PartitionCell.PartitionCellBorder
extends Object

Type-safe enumeration that is used to define the border of a partition cell.

See Also:
PartitionCell.createBorderInterval(y.layout.router.polyline.PartitionCell.PartitionCellBorder)

Field Summary
static PartitionCell.PartitionCellBorder EAST
          Type constant to define the right border of a PartitionCell.
static PartitionCell.PartitionCellBorder NORTH
          Type constant to define the upper border of a PartitionCell.
static PartitionCell.PartitionCellBorder SOUTH
          Type constant to define the lower border of a PartitionCell.
static PartitionCell.PartitionCellBorder WEST
          Type constant to define the left border of a PartitionCell.
 
Method Summary
 PartitionCell.PartitionCellBorder getMirrorBorder()
          Returns the type of the border that is on the opposite side of the border defined by this type.
static PartitionCell.PartitionCellBorder valueOfEnterDirection(Direction direction)
          Returns the type of the border that is passed through when entering a PartitionCell in the given direction.
static PartitionCell.PartitionCellBorder valueOfExitDirection(Direction direction)
          Returns the type of the border that is passed through when leaving a PartitionCell in the given direction.
static PartitionCell.PartitionCellBorder valueOfPortCandidate(PortCandidate pc)
          Returns the type of the border that is defined by the given port candidate.
static PartitionCell.PartitionCellBorder valueOfPortConstraint(PortConstraint pc)
          Returns the type of the border that is defined by the given port constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORTH

public static final PartitionCell.PartitionCellBorder NORTH
Type constant to define the upper border of a PartitionCell.


SOUTH

public static final PartitionCell.PartitionCellBorder SOUTH
Type constant to define the lower border of a PartitionCell.


EAST

public static final PartitionCell.PartitionCellBorder EAST
Type constant to define the right border of a PartitionCell.


WEST

public static final PartitionCell.PartitionCellBorder WEST
Type constant to define the left border of a PartitionCell.

Method Detail

valueOfExitDirection

public static PartitionCell.PartitionCellBorder valueOfExitDirection(Direction direction)
Returns the type of the border that is passed through when leaving a PartitionCell in the given direction.

Parameters:
direction - The direction in which a PartitionCell is left.
Returns:
The type of the border that is passed through.
See Also:
PartitionCell

valueOfEnterDirection

public static PartitionCell.PartitionCellBorder valueOfEnterDirection(Direction direction)
Returns the type of the border that is passed through when entering a PartitionCell in the given direction.

Parameters:
direction - The direction in which a PartitionCell is entered.
Returns:
The type of the border that is passed through.
See Also:
PartitionCell

valueOfPortConstraint

public static PartitionCell.PartitionCellBorder valueOfPortConstraint(PortConstraint pc)
Returns the type of the border that is defined by the given port constraint.

Parameters:
pc - The port constraint for that the border type is returned.
Returns:
The type of the border that is defined by the given port constraint.
See Also:
PortConstraint

valueOfPortCandidate

public static PartitionCell.PartitionCellBorder valueOfPortCandidate(PortCandidate pc)
Returns the type of the border that is defined by the given port candidate.

Parameters:
pc - The port candidate for that the border type is returned.
Returns:
The type of the border that is defined by the given port candidate.
See Also:
PortCandidate

getMirrorBorder

public PartitionCell.PartitionCellBorder getMirrorBorder()
Returns the type of the border that is on the opposite side of the border defined by this type.

Returns:
The type of the border that is on the opposite side of the border defined by this type.

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