public void SetRouteElement( IRoadElement element )
 {
     var junctionEdge = element as JunctionEdge;
     if ( junctionEdge == null ) { throw new ArgumentException( "Wrong road element" ); }
     this._junctionEdge = junctionEdge;
 }
 public void Build( BuilderContext context, IControl control )
 {
     var buildJunctionEdge = ( BuildJunctionEdge ) control;
     this._junctionEdge = new JunctionEdge( buildJunctionEdge, l => context.RoadInformationFactory.Create( l ) );
     context.AddElement( buildJunctionEdge, this._junctionEdge );
 }
 public JunctionEdgeDrawer( JunctionEdge owner )
 {
     this._owner = owner;
 }