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

ToolBar {
  enabled: true;
  button[0]: @+button0;
  button[1]: @+button1;
  button[2]: @+button2;
  button[3]: @+button3;
  button[4]: @+button4;
  button[5]: @+button5;
  button[6]: @+button6;
  button[7]: @+button7;
  button[8]: @+Separator0;
  button[9]: @+button8;
  button[10]: @+button9;
  button[11]: @+button10;
  button[12]: @+button11;
  button[13]: @+button12;
  button[14]: @+Separator1;
  button[15]: @+button13;  
}

#button0 {
  actionType: "Select";
  usingObjectInteractor: "true";
  opaqueMove: "true";
  action[0]: @+deleteAction;
  action[1]: @+selectAllAction;
  popupMenuFactory: @+popupMenuFactory;  
}

#button1 {
  actionType: "Pan";
  usingObjectInteractor: "false";
}

#button2 {
  actionType: "ZoomIn";
}

#button3 {
  actionType: "ZoomOut";
}

#button4 {
  actionType: "ZoomBack";
}

#button5 {
  actionType: "ZoomReset";
}

#button6 {
  actionType: "FitToContents";
}

#button7 {
  actionType: "ZoomView";
  usingObjectInteractor: "false";
}

#Separator0 {  
        actionType: "Separator";
        dimension: "20,10";
}

#button8 {
  actionType: "editor.action.MakeNetworkElementButton";
  toolTipText: "Create Network Element";
  icon: @+makeNetworkElementIcon;
}

#button9 {
  actionType: "MakeLink";
  usingObjectInteractor: "false";
}

#button10 {
  actionType: "MakeRectGroup";
  usingObjectInteractor: "false";
}

#button11 {
  actionType: "MakeLinearGroup";
  usingObjectInteractor: "false";
}

#button12 {
  actionType: "MakePolyGroup";
  usingObjectInteractor: "false";
}

#button13 {
  actionType: "EditGroup";
  usingObjectInteractor: "false";
}

#Separator1 {  
        actionType: "Separator";
        dimension: "20,10";
}


#makeNetworkElementIcon {  
  class: "javax.swing.ImageIcon";
  image: "@|image("MakeNetworkElement.png")";
}

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

#selectAllAction {  
  key: "control A";
  class: "ilog.cpl.graph.action.IlpSelectAllObjectsAction";
}

#popupMenuFactory {    
  class: "editor.PopupMenuFactory";
}

View {
  keepingAspectRatio: true;
}

Interactor {
  name: "Select";
}

Zooming {
  type: "Mixed";
}

LinkLayout {
  class: "ilog.views.graphlayout.link.IlvLinkLayout";
  globalLinkStyle: DIRECT_STYLE;

} 

//Make objects expandable by default
object {
  expansion: IN_PLACE;
}