266a267,268 > * > * @deprecated use getAttribute(FigureAttributeConstant) instead 268a271,280 > return getAttribute(FigureAttributeConstant.getConstant(name)); > } > > /** > * Gets the attribute with the given name. > * PolyLineFigure maps "ArrowMode"to a > * line decoration. > */ > public Object getAttribute(FigureAttributeConstant attributeConstant) { > if (attributeConstant.equals(FigureAttributeConstant.FRAME_COLOR)) { 269,269d270 < if (name.equals("FrameColor")) { 271a283,283 > else if (attributeConstant.equals(FigureAttributeConstant.ARROW_MODE)) { 272,272d282 < else if (name.equals("ArrowMode")) { 282,282c293,293 < return super.getAttribute(name); --- > return super.getAttribute(attributeConstant); 288a300,301 > * > * @deprecated use setAttribute(FigureAttributeConstant, Object) instead 290a304,313 > setAttribute(FigureAttributeConstant.getConstant(name), value); > } > > /** > * Sets the attribute with the given name. > * PolyLineFigure interprets "ArrowMode"to set > * the line decoration. > */ > public void setAttribute(FigureAttributeConstant attributeConstant, Object value) { > if (attributeConstant.equals(FigureAttributeConstant.FRAME_COLOR)) { 291,291d303 < if (name.equals("FrameColor")) { 294a317,317 > else if (attributeConstant.equals(FigureAttributeConstant.ARROW_MODE.getName())) { 295,295d316 < else if (name.equals("ArrowMode")) { 315,315c337,337 < super.setAttribute(name, value); --- > super.setAttribute(attributeConstant, value); 360a383,393 > > /** > * Hook method to change the rectangle that will be invalidated > */ > protected Rectangle invalidateRectangle(Rectangle r) { > // SF-bug id: 533953: provide this method to customize invalidated rectangle > Rectangle parentR = super.invalidateRectangle(r); > parentR.add(getStartDecoration().displayBox()); > parentR.add(getEndDecoration().displayBox()); > return parentR; > }