/** @see java.awt.event.ItemListener#itemStateChanged(java.awt.event.ItemEvent) */
 public void itemStateChanged(ItemEvent e) {
   if (!refreshTransaction) {
     Object src = e.getSource();
     if (src == shadowField) {
       setTargetShadow();
     } else if (src == pathCheckBox) {
       PathContainer pc = (PathContainer) getPanelTarget();
       pc.setPathVisible(pathCheckBox.isSelected());
     } else {
       super.itemStateChanged(e);
     }
   }
 }
  /** @see org.argouml.ui.TabTarget#refresh() */
  public void refresh() {
    refreshTransaction = true;
    // Let the parent do its refresh.
    super.refresh();
    PathContainer pc = (PathContainer) getPanelTarget();
    pathCheckBox.setSelected(pc.isPathVisible());
    refreshTransaction = false;

    // Change the shadow size if appropriate
    if (getPanelTarget() instanceof FigNodeModelElement) {

      int shadowSize = ((FigNodeModelElement) getPanelTarget()).getShadowSize();

      if (shadowSize > 0) {
        shadowField.setSelectedIndex(shadowSize);
      } else {
        shadowField.setSelectedIndex(0);
      }
    }
    // lets redraw the box
    setTargetBBox();
  }