Exemplo n.º 1
0
  /** @see org.jgraph.pad.actions.IpssAbstractGraphAction#getMenuComponent(String) */
  protected Component getMenuComponent(String actionCommand) {
    JCheckBoxMenuItem button = new JCheckBoxMenuItem(this);
    abstractButtons.add(button);
    GPBarFactory.fillMenuButton(button, getName(), actionCommand);
    String presentationText = getPresentationText(actionCommand);
    if (presentationText != null) button.setText(presentationText);

    return button;
  }
Exemplo n.º 2
0
 /** @see org.jgraph.pad.actions.IpssAbstractGraphAction#getToolComponent(String) */
 public Component getToolComponent(String actionCommand) {
   JCheckBox button = new JCheckBox(this);
   abstractButtons.add(button);
   GPBarFactory.fillToolbarButton(button, getName(), actionCommand);
   return button;
 }