()
| 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 |
no test coverage detected