/** @generated */
 protected void handleNotificationEvent(Notification notification) {
   Object feature = notification.getFeature();
   if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
       || NotationPackage.eINSTANCE.getSize_Height().equals(feature)
       || NotationPackage.eINSTANCE.getLocation_X().equals(feature)
       || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
     refreshBounds();
   }
   super.handleNotificationEvent(notification);
 }
 /** @generated */
 protected void createDefaultEditPolicies() {
   super.createDefaultEditPolicies();
   installEditPolicy(
       EditPolicyRoles.SEMANTIC_ROLE,
       new PackagePackageableElementCompartmentItemSemanticEditPolicy());
   installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
   installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
   // in Papyrus diagrams are not strongly synchronised
   // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.clazz.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicy());
   installEditPolicy("RemoveOrphanView", new RemoveOrphanViewPolicy()); // $NON-NLS-1$
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new ClassDiagramDragDropEditPolicy());
   installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
   installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CustomContainmentCreationEditPolicy());
 }
 /** @generated */
 protected void setRatio(Double ratio) {
   if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
     super.setRatio(ratio);
   }
 }
 /** @generated */
 protected void refreshVisuals() {
   super.refreshVisuals();
   refreshBounds();
 }