MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / setRotator

Method setRotator

src/main/java/ui/VirtualList.java:1145–1165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1143 }
1144
1145 protected void setRotator() {
1146//#if (USE_ROTATOR)
1147 if (cursor < getItemCount())
1148 focusedItem(cursor);
1149
1150 int itemWidth = 0;
1151 if (cursor < getItemCount()) {
1152 VirtualElement item = getItemRef(cursor);
1153 if (item != null) {
1154 itemWidth = item.getVWidth();
1155 if (itemWidth >= getListWidth()) {
1156 itemWidth -= width / 2;
1157 } else {
1158 itemWidth = 0;
1159 }
1160 }
1161 }
1162
1163 TimerTaskRotate.startRotate(itemWidth, this);
1164 //#endif
1165 }
1166
1167 protected void drawCursor (Graphics g, int width, int height) {
1168

Callers 15

moveCursorHomeMethod · 0.95
moveCursorEndMethod · 0.95
pointerPressedMethod · 0.95
keyUpMethod · 0.95
keyDwnMethod · 0.95
pageLeftMethod · 0.95
pageRightMethod · 0.95
deleteMessageMethod · 0.80
pageLeftMethod · 0.80
pageRightMethod · 0.80
set_xCursorMethod · 0.80
focusToNextUnreadedMethod · 0.80

Calls 6

getItemCountMethod · 0.95
focusedItemMethod · 0.95
getItemRefMethod · 0.95
getVWidthMethod · 0.95
getListWidthMethod · 0.95
startRotateMethod · 0.95

Tested by

no test coverage detected