I have some methods in my view that change some of the shapes that loom when called. In Java, to make sure the component is updated, I would call repaint() . Is there anything that will ensure the correct update of my submission?
I read somewhere that calling invalidate() in the onDraw() method will keep it up-to-date, and therefore I did not need to have something like repaint() in my methods that change the drawings that are being drawn.
Is this right, or is there something else I should do?
EDIT
To add to the example, the method that I call in my opinion is:
public void setLineThickness(int thickness) { aLineThickness = thickness; if(aLineThicness > 1)
StartingGroovy
source share