Class TrackSegment

java.lang.Object
jmri.jmrit.display.layoutEditor.LayoutTrack
jmri.jmrit.display.layoutEditor.TrackSegment

public class TrackSegment
extends LayoutTrack
TrackSegment is a segment of track on a layout linking two nodes of the layout. A node may be a LayoutTurnout, a LevelXing or a PositionablePoint.

PositionablePoints have 1 or 2 connection points. LayoutTurnouts have 3 or 4 (crossovers) connection points, designated A, B, C, and D. LevelXing's have 4 connection points, designated A, B, C, and D.

TrackSegments carry the connectivity information between the three types of nodes. Track Segments serve as the lines in a graph which shows layout connectivity. For the connectivity graph to be valid, all connections between nodes must be via TrackSegments.

TrackSegments carry Block information, as do LayoutTurnouts and LevelXings.

Arrows and bumpers are visual, presentation aspects handled in the View.