示例#1
0
 /** Sets the width of the line when selected */
 @Override
 public void setSelected(final int value) {
   super.setSelected(value);
   final PropertyFigure figure = (PropertyFigure) getFigure();
   if (value != EditPart.SELECTED_NONE) {
     figure.setBackgroundColor(ColorConstants.menuBackgroundSelected);
   } else {
     figure.setBackgroundColor(ColorConstants.listBackground);
   }
   figure.repaint();
 }