Skip to content

Commit

Permalink
Mark more log statements as level=Finer.
Browse files Browse the repository at this point in the history
  • Loading branch information
weisJ committed Feb 23, 2021
1 parent 61706f5 commit f161b36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ private void updatePopup(final I index, final Point p) {
final Rectangle cellBounds = cellContainer.getCellBoundsAt(index, isEditing);
if (cellBounds != null && allocation != null) {
final Rectangle visibleBounds = allocation.intersection(cellBounds);
LOGGER.fine(() -> "Visible bounds at index " + index + ": " + visibleBounds);
LOGGER.finer(() -> "Visible bounds at index " + index + ": " + visibleBounds);
if (visibleBounds.contains(p)) {
if (isPopupNeeded(index, isEditing, visibleBounds)) {
Point popupLocation = cellContainer.getComponent().getLocationOnScreen();
Rectangle popupBounds = calculatePopupBounds(cellBounds, visibleBounds, !isEditing);
LOGGER.fine(() -> "Popup bounds at index " + index + ": " + popupBounds);
LOGGER.finer(() -> "Popup bounds at index " + index + ": " + popupBounds);
if (!visibleBounds.contains(popupBounds)) {
cellBounds.x = popupBounds.x - cellBounds.x;
cellBounds.y = popupBounds.y - cellBounds.y;
Expand All @@ -126,7 +126,7 @@ private boolean isDifferentPopupOpen() {
private boolean isPopupNeeded(final I index, final boolean isEditing, final Rectangle visibleBounds) {
final Component comp = cellContainer.getEffectiveCellRendererComponent(index, isEditing);
final Dimension prefSize = getPreferredSize(isEditing, comp);
LOGGER.fine(() -> "Necessary cell size at index " + index + ": " + prefSize);
LOGGER.finer(() -> "Necessary cell size at index " + index + ": " + prefSize);
return !fitsInside(prefSize, visibleBounds);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ private void ensureSizeLoaded() {
}
}
setDisplaySize(width, height);
LOGGER.fine(() -> "Inferred size of icon '" + getName(uri) + "' to " + iconSize);
LOGGER.finer(() -> "Inferred size of icon '" + getName(uri) + "' to " + iconSize);
}
}

Expand Down

0 comments on commit f161b36

Please sign in to comment.