+ void CreateAxisLabels( Actor parent )
+ {
+ TextLabel progressionLabel = TextLabel::New( "Progression" );
+ progressionLabel.SetProperty( TextLabel::Property::POINT_SIZE, AXIS_LABEL_POINT_SIZE );
+ progressionLabel.SetProperty( Actor::Property::ORIENTATION, Quaternion( Radian( Degree(-90.0f) ), Vector3::ZAXIS ) );
+ progressionLabel.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_LEFT );
+ progressionLabel.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_LEFT );
+ CreateLine( progressionLabel, ParentOrigin::BOTTOM_LEFT );
+
+ TextLabel timeLabel = TextLabel::New( "Time" );
+ timeLabel.SetProperty( TextLabel::Property::POINT_SIZE, AXIS_LABEL_POINT_SIZE );
+ timeLabel.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
+ timeLabel.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_LEFT );
+ CreateLine( timeLabel, ParentOrigin::TOP_LEFT );
+
+ parent.Add( progressionLabel );
+ parent.Add( timeLabel );
+ }
+
+ void CreateLine( Actor parent, const Vector3& parentOrigin )
+ {
+ Control control = Control::New();
+ control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
+ control.SetProperty( Actor::Property::PARENT_ORIGIN, parentOrigin );
+ control.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
+ control.SetProperty( Actor::Property::SIZE_HEIGHT, AXIS_LINE_SIZE );
+ control.SetBackgroundColor( Color::BLACK );
+ parent.Add( control );
+ }
+