public Figure_appearance get_for_figure(IFigure figure) { Figure_appearance appearance = this.provide_new <Figure_appearance>(); appearance.init_for_figure(figure); return(appearance); }
public IFigure_appearance create_figure_appearance( IFigure figure, IAction_group start, IAction_group end ) { Figure_appearance appearance = figure_appearance_prefab .get_for_figure(figure); figure.add_appearance(appearance); put_action_into_group(appearance.appearance_start, start); put_action_into_group(appearance.appearance_end, end); appearance.create_curved_line(); return(appearance); }