// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Network component additional customization
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Network {
  view: true;
  toolbar: true;
  interactor: true;
  linkLayout: true;
  zooming: true;
}

View {
  keepingAspectRatio: true;
  maxZoomXFactor: 10;
  maxZoomYFactor: 10;
}

ToolBar {
  enabled: true;
  button[0]: @+SelectButton;
  button[1]: @+ZoomInButton;
  button[2]: @+ZoomOutButton;
  button[3]: @+ZoomBackButton;
  button[4]: @+ZoomResetButton;
  button[5]: @+FitToContentsButton;
  button[6]: @+ZoomViewButton;
  button[7]: @+MakeLinkButton;
  button[8]: @+EditPinButton;
}

#SelectButton {
  actionType: "Select";
  action[0]: @+action0;
}

#action0 {
  key: "DELETE";
  class: "ilog.cpl.graph.action.IlpRemoveSelectedObjectsAction";
}

#ZoomInButton {
  actionType: "ZoomIn";
}

#ZoomOutButton {
  actionType: "ZoomOut";
}

#ZoomBackButton {
  actionType: "ZoomBack";
}

#ZoomResetButton {
  actionType: "ZoomReset";
}

#FitToContentsButton {
  actionType: "FitToContents";
}

#ZoomViewButton {
  actionType: "ZoomView";
}

#MakeLinkButton {
  actionType: "MakeLink";
}

#EditPinButton { 
  actionType: "linkPorts.EditPinButton";
}

Interactor {
  name: "Select";
}

LinkLayout {
  // It is mandatory to use this layout to enable the link ports.
  class: "ilog.tgo.graphic.graphlayout.IltShortLinkLayout";
  linkBundlesMode: IMPROVED_FIRST_LAST_SEGMENT;
  globalLinkStyle: DIRECT_STYLE;
}

Zooming {
  type: "Physical";
}