Skip to content

ConnectorSegment

Connectors are made of connector segments.
The only class that should use ConnectorSegment is Connector

Constructors
ConnectorSegment(PointI, PointI, Connector) Connector Segment constructor. Extremity must have the same X or Y coordinate
Properties
Connector Connector containging the segment
End Connector start location (in the design coordinate system)
Footprint Return segment Footprint
Position Return the position of the top left point of the segment (used as the reference)
Start Connector start location (in the design coordinate system)
Methods
CanMove(int, int, int, bool, bool, IList) Return true if the emplacement at the newLocation is free.
GetOrientation() Return the orientation of the segment (Horizontal or Vertical);
IsDirectlyConnectedTo(ConnectorSegment) Return true is one of the extremity of the segments are the same.
Move(int, int, int, bool, bool) Return true if the item is moved to the desired future location.
Return false if the item is not moved
ToString() Overide the ToString method (Usually for debugs)