|
|
|
@ -486,7 +486,7 @@ public class MultiTemplateTabPane extends JPanel {
|
|
|
|
|
startX = new int[maxPaintIndex - minPaintIndex + 1]; |
|
|
|
|
double templateStartX = scale(LEADING_WIDTH); |
|
|
|
|
for (int i = getViewRange().getFirst(); i <= getViewRange().getSecond(); i++) { |
|
|
|
|
int closePosition = (int) templateStartX + getTabWidth() - clodeIcon.getIconWidth() - GAP; |
|
|
|
|
int closePosition = (int) templateStartX + getTabWidth() - clodeIcon.getIconWidth() - GAP; |
|
|
|
|
startX[i - minPaintIndex] = closePosition; |
|
|
|
|
templateStartX += getTabWidth(); |
|
|
|
|
} |
|
|
|
@ -922,7 +922,9 @@ public class MultiTemplateTabPane extends JPanel {
|
|
|
|
|
public void mouseMoved(MouseEvent e) { |
|
|
|
|
int evtX = e.getX(); |
|
|
|
|
mouseOveredIndex = getTemplateIndex(evtX); |
|
|
|
|
setToolTipText(openedTemplate.get(mouseOveredIndex).getEditingFILE().getName()); |
|
|
|
|
if (mouseOveredIndex > -1) { |
|
|
|
|
setToolTipText(openedTemplate.get(mouseOveredIndex).getEditingFILE().getName()); |
|
|
|
|
} |
|
|
|
|
hoverMoreAction = isOverListDown(evtX); |
|
|
|
|
closeIconIndex = isOverCloseIcon(evtX) ? mouseOveredIndex : -1; |
|
|
|
|
MultiTemplateTabPane.this.repaint(); |
|
|
|
|