+#include "debug.hh"
+
+
+Staff_side::Staff_side()
+{
+ coordinate_offset_f_=0;
+ sym_int_ = Interval (0,0);
+ padding_f_ = 0.0;
+ dir_ = CENTER;
+ axis_ = Y_AXIS;
+}
+
+
+Interval
+Staff_side::support_extent() const
+{
+ Interval y_int;
+ for (int i=0; i < support_l_arr_.size(); i++)
+ {
+ Graphical_axis_group *common =
+ common_group (support_l_arr_[i], axis_);
+
+ Real y = support_l_arr_[i]->relative_coordinate (common, axis_)
+ -relative_coordinate (common,axis_);
+
+ y_int.unite (y + support_l_arr_[i]->extent(axis_));
+ }
+
+ if (y_int.empty_b())
+ {
+ y_int = Interval (0,0);
+ }
+ return Interval(y_int[LEFT] - padding_f_, y_int[RIGHT] + padding_f_);
+}