Clear rect on scrolling.
Fixed NPE on null style. Added NotNull annotations.
Don't use linesBuffer in alternate buffer mode.