| .. | .. |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | public class TimelineSlider extends ModelPanel |
|---|
| 17 | 17 | { |
|---|
| 18 | | - |
|---|
| 19 | 18 | TimelineVisuals visuals; |
|---|
| 20 | 19 | Interval original; |
|---|
| 21 | 20 | long minRange; |
|---|
| .. | .. |
|---|
| 30 | 29 | |
|---|
| 31 | 30 | START, END, POSITION, NONE |
|---|
| 32 | 31 | }; |
|---|
| 32 | + |
|---|
| 33 | 33 | Modify change = Modify.NONE; |
|---|
| 34 | 34 | Rectangle startRect = new Rectangle(-1, -1, 0, 0); |
|---|
| 35 | 35 | Rectangle endRect = new Rectangle(-1, -1, 0, 0); |
|---|
| .. | .. |
|---|
| 165 | 165 | scale.setDateRange(visuals.getGlobalInterval()); |
|---|
| 166 | 166 | scale.setNumberRange(ew, w - ew); |
|---|
| 167 | 167 | |
|---|
| 168 | | - |
|---|
| 169 | 168 | // draw the area for the central "thumb". |
|---|
| 170 | 169 | int lx = scale.toInt(window().start); |
|---|
| 171 | 170 | int rx = scale.toInt(window().end); |
|---|
| .. | .. |
|---|
| 194 | 193 | mostInSlot = Math.max(mostInSlot, slots[s]); |
|---|
| 195 | 194 | } |
|---|
| 196 | 195 | } |
|---|
| 196 | + |
|---|
| 197 | 197 | if (mostInSlot > 30) |
|---|
| 198 | 198 | { |
|---|
| 199 | 199 | g.setColor(Color.gray); |
|---|