Browse Source

Mark more log statements as level=Finer.

pull/235/head
weisj 4 years ago
parent
commit
f161b369ec
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 6
      core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java
  2. 2
      property-loader/src/main/java/com/github/weisj/darklaf/icons/DarkSVGIcon.java

6
core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java

@ -96,12 +96,12 @@ public class CellHintPopupListener<T extends JComponent, I> extends MouseInputAd
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;
@ -126,7 +126,7 @@ public class CellHintPopupListener<T extends JComponent, I> extends MouseInputAd
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);
}

2
property-loader/src/main/java/com/github/weisj/darklaf/icons/DarkSVGIcon.java

@ -330,7 +330,7 @@ public class DarkSVGIcon implements DerivableIcon<DarkSVGIcon>, RotateIcon, Seri
}
}
setDisplaySize(width, height);
LOGGER.fine(() -> "Inferred size of icon '" + getName(uri) + "' to " + iconSize);
LOGGER.finer(() -> "Inferred size of icon '" + getName(uri) + "' to " + iconSize);
}
}

Loading…
Cancel
Save