Deprecated Methods |
etchasketch.DotPanel.curHeight()
This method and the associated shadow variable violate the DRY
(Do not Repeat Yourself) principle. The only visible benefit is a
slightly reduced typing. With modern compilers this won't even yield
a performance increase because the getWidth or getHeight methods will
be inlined. The Sun code for these methods in Component
is:
public int getWidth() {
return width;
}
For this reason, this method and the associated variables will be removed. |
etchasketch.DotPanel.curWidth()
This method and the associated shadow variable violate the DRY
(Do not Repeat Yourself) principle. The only visible benefit is a
slightly reduced typing. With modern compilers this won't even yield
a performance increase because the getWidth or getHeight methods will
be inlined. The Sun code for these methods in Component
is:
public int getWidth() {
return width;
}
For this reason, this method and the associated variable will be removed. |