Exemplo n.º 1
0
  @Override
  /** {@inheritDoc} */
  protected void contentChanged(DiagramPane pane) {
    if (pane == null) {
      updateMenus(false);
      saveItem.setEnabled(false);
      container.updateToolBar(null);
    } else {
      saveItem.setEnabled(!pane.isSaved());
      numberingItem.setState(pane.getOptions().isNumberingEnabled());
      updateMenus(true);

      OrderingLevel level = pane.getOptions().getOrderingLevel();
      orderingOffItem.setState(level == OrderingLevel.OFF);
      orderingOverlapItem.setState(level == OrderingLevel.SUPPRESS_OVERLAP);
      container.updateToolBar(pane);
    }
  }
Exemplo n.º 2
0
 public void actionPerformed(ActionEvent e) {
   DiagramPane pane = getCurrentDiagram();
   pane.getOptions().invertNumbering();
 }