public void setSelected(boolean b) { super.setSelected(b); rectangle.setLineWidth(b ? 3 : 1); repaint(); }
public void validate() { if (isValid()) return; layoutConnectionAnchors(); super.validate(); }
public void setBounds(Rectangle rectangle) { super.setBounds(rectangle); this.rectangle.setBounds(rectangle); }