// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Network component additional customization
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Network {
  view: true;
  toolbar: true;
  interactor: true;
  zooming: true;
  backgrounds: true;
}

View {
  keepingAspectRatio: true;
}

// Add a toolbar that displays the view's transformer when it changes.
ToolBar {
  enabled: true;
  button[0]: @+SelectButton;
  button[1]: @+PanButton;
  button[2]: @+ZoomInButton;
  button[3]: @+ZoomOutButton;
  button[4]: @+ZoomBackButton;
  button[5]: @+FitToContentsButton;
  button[6]: @+ZoomViewButton;
}

#SelectButton {
  actionType: "Select";
  usingObjectInteractor: true;
  opaqueMove: true;
}

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

#ZoomInButton {
  actionType: "ZoomIn";
}

#ZoomOutButton {
  actionType: "ZoomOut";
}

#ZoomBackButton {
  actionType: "ZoomBack";
}

#FitToContentsButton {
  actionType: "FitToContents";
}

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

Interactor {
  name: "Select";
}

// Use a mixed zoom policy. Otherwise the zoom factor of 16 makes
// the nodes huge and ugly.
Zooming {
  type: "Mixed";
  zoomThreshold: 11;
}

// Load a background file.
Backgrounds {
  background[0]: "multires/poline/poline0.ivl";
  backgroundColor: #C0D0ED;
}