153154155156157158159160161162163164
return new Rectangle(xPos - 1, yPos - 1, 3, 3); } public void invalidate() { FigureChangeListener l = listener(); if (l != null) { Rectangle r = infiniteDisplayBox(); l.figureInvalidated(new FigureChangeEvent(this, r)); } }