-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
左边的序号怎么从0开始 或者下移一行 #281
Comments
原因:TableData类有个方法getYSequenceFormat用来格式化Y轴(也就是左边序号那一列)
如果没设置YSequenceFormat,会使用默认的NumberSequenceFormat,NumberSequenceFormat的实现如下
position的值是从1开始的,所以序号是从1开始 解决:调用TableData.setYSequenceFormat(ISequenceFormat YSequenceFormat)方法设置ISequenceFormat即可,可以复写NumberSequenceFormat的format方法实现 Java版本:
Kotlin版本:
|
刚要查这个问题,就找到了这里。 kaerwen 给出的答案真是正解。感谢大佬 |
突然收到邮箱提醒,都不记得自己曾经回答过这个问题,能帮助到别人还是很开心的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
序号1正好和标题对应 我想和我的数据对应
The text was updated successfully, but these errors were encountered: