@Override
public void adjustmentValueChanged(AdjustmentEvent e) {
if (horizontalScrollUnit == HorizontalScrollUnit.CHARACTER) {
scrollPosition.setScrollCharPosition(scrollPanel.getHorizontalScrollBar().getValue());
} else {
if (characterWidth > 0) {
int horizontalScroll = scrollPanel.getHorizontalScrollBar().getValue();
scrollPosition.setScrollCharPosition(horizontalScroll / characterWidth);
scrollPosition.setScrollCharOffset(horizontalScroll % characterWidth);
}
}
worker.getCodeArea().repaint();
// dataViewScrolled(codeArea.getGraphics());
notifyScrolled();
}
DefaultCodeAreaPainter.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:deltahex-java
作者:
评论列表
文章目录