static ObjectChange* zigzagline_move(Zigzagline *zigzagline, Point *to) { orthconn_move(&zigzagline->orth, to); zigzagline_update_data(zigzagline); return NULL; }
static ObjectChange* realizes_move(Realizes *realize, Point *to) { orthconn_move(&realize->orth, to); realizes_update_data(realize); return NULL; }
static ObjectChange* dependency_move(Dependency *dep, Point *to) { ObjectChange *change; change = orthconn_move(&dep->orth, to); dependency_update_data(dep); return change; }
static ObjectChange* participation_move(Participation *participation, Point *to) { ObjectChange *change; change = orthconn_move(&participation->orth, to); participation_update_data(participation); return change; }
static ObjectChange* association_move(Association *assoc, Point *to) { ObjectChange *change; change = orthconn_move(&assoc->orth, to); association_update_data(assoc); return change; }
static ObjectChange* arc_move(Arc *arc, Point *to) { ObjectChange *change; change = orthconn_move(&arc->orth, to); arc_update_data(arc); return change; }
static ObjectChange * compfeat_move(Compfeat *compfeat, Point *to) { ObjectChange *change; Point delta = *to; delta = *to; point_sub(&delta, &compfeat->orth.points[0]); /* I don't understand this, but the text position is wrong directly after compfeat_create()! */ point_add(&delta, &compfeat->text->position); text_set_position(compfeat->text, &delta); change = orthconn_move(&compfeat->orth, to); compfeat_update_data(compfeat); return change; }
static ObjectChange* transition_move(Transition* transition, Point* newpos) { Point delta; ObjectChange *change; /* Find a delta in order to move the text handles along with the transition */ delta = *newpos; point_sub(&delta, &transition->orth.points[0]); change = orthconn_move(&transition->orth, newpos); /* Move the text handles */ point_add(&transition->trigger_text_pos, &delta); point_add(&transition->guard_text_pos, &delta); uml_transition_update_data(transition); return change; }
static void generalization_move(Generalization *genlz, Point *to) { orthconn_move(&genlz->orth, to); generalization_update_data(genlz); }
static void participation_move(Participation *participation, Point *to) { orthconn_move(&participation->orth, to); participation_update_data(participation); }