Quintiq file version 2.0
#parent: CustomDrawComponentRoutingConfigurator/CustomDrawDataLayerRoutingStep
Response OnDrawObject (
  RoutingStep object
) id:Response_CustomDrawComponentRoutingConfigurator_CustomDrawDataLayerRoutingStep_OnDrawObject
{
  #keys: '[124808.0.1218208264]'
  Body:
  [*
    // Draw routing step
    
    //Initialize borders
    surface.Pen().Style( PenSpecification::StyleSolid() );
    surface.Pen().Width( 1 )
    surface.Pen().Color( ColorScheme.Outline() );
    
    //Initialize filled colors
    //It is safe to use color scheme as the routing config is not user / scenario specific
    surface.Brush().LinearGradient( region,
                                    ColorScheme.RoutingConfigurator_RoutingStep1(),
                                    ColorScheme.RoutingConfigurator_RoutingStep2(),
                                    0.0 );
    
    //Initialize text
    rcv := DataHolderRCView.Data();
    surface.Font().Name( rcv.FontName() );
    surface.Font().Size( rcv.FontSize() );
    surface.Font().Bold( true );
    
    surface.Draw( region );
    textformat := TextFormat::Construct( TextFormat::AlignLeft(), TextFormat::AlignTop() );
    surface.Text( 2, 2, region.Width(), region.Height(), text, textformat );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_CustomDrawDataLayer_OnDrawObject'
  Precondition:
  [*
    return not isnull( DataHolderRCView.Data() )
  *]
}
