The main change is replacement of calls to getLogger("…")
by a LOGGER
constant.
This commit has been removed from the code ported to Apache SIS.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r5051:5052 https://svn.osgeo.org/geotools/trunk/modules/extension/widgets-swing/src/main/java/org/geotools/gui/swing/ZoomPane.java
Revision 5051 | Revision 5052 |
---|---|
* by the user through the scrollbars will be translated by calls to
* {@link #transform}.</p>
*
* @version $Id: ZoomPane.java,v 1.14 2003/09/18 13:45:13 desruisseaux Exp $
* @author Martin Desruisseaux
*/
public abstract class ZoomPane extends JComponent implements DeformableViewer { |
* by the user through the scrollbars will be translated by calls to
* {@link #transform}.</p>
*
* @version $Id: ZoomPane.java,v 1.15 2004/02/16 07:00:04 aaime Exp $
* @author Martin Desruisseaux
*/
public abstract class ZoomPane extends JComponent implements DeformableViewer { |
/*[9] RotateRight */ ResourceKeys.ROTATE_RIGHT }; /** * List of default keystrokes used to perform zooms. * The elements of this table go in pairs. The even indexes indicate |
/*[9] RotateRight */ ResourceKeys.ROTATE_RIGHT
};
private static final Logger LOGGER = Logger.getLogger("org.geotools.gui.swing");
/**
* List of default keystrokes used to perform zooms.
* The elements of this table go in pairs. The even indexes indicate |
* contextual menu appear). It will listen out for changes in the size
* of the component (to adjust the zoom), etc.
*
* @version $Id: ZoomPane.java,v 1.14 2003/09/18 13:45:13 desruisseaux Exp $
* @author Martin Desruisseaux
*/
private final class Listeners extends MouseAdapter implements MouseWheelListener, |
* contextual menu appear). It will listen out for changes in the size
* of the component (to adjust the zoom), etc.
*
* @version $Id: ZoomPane.java,v 1.15 2004/02/16 07:00:04 aaime Exp $
* @author Martin Desruisseaux
*/
private final class Listeners extends MouseAdapter implements MouseWheelListener, |
* place the user clicked when this menu was invoked.
*
* @author Martin Desruisseaux
* @version $Id: ZoomPane.java,v 1.14 2003/09/18 13:45:13 desruisseaux Exp $
*/
private static final class PointPopupMenu extends JPopupMenu {
/** |
* place the user clicked when this menu was invoked.
*
* @author Martin Desruisseaux
* @version $Id: ZoomPane.java,v 1.15 2004/02/16 07:00:04 aaime Exp $
*/
private static final class PointPopupMenu extends JPopupMenu {
/** |
* class is not used because it is difficult to get {@link JViewport} to
* cooperate with transformations already handled by {@link ZoomPane#zoom}.
*
* @version $Id: ZoomPane.java,v 1.14 2003/09/18 13:45:13 desruisseaux Exp $
* @author Martin Desruisseaux
*/
private final class ScrollPane extends JComponent implements PropertyChangeListener { |
* class is not used because it is difficult to get {@link JViewport} to
* cooperate with transformations already handled by {@link ZoomPane#zoom}.
*
* @version $Id: ZoomPane.java,v 1.15 2004/02/16 07:00:04 aaime Exp $
* @author Martin Desruisseaux
*/
private final class ScrollPane extends JComponent implements PropertyChangeListener { |
* <code>ZoomPane</code> object.
*
* @author Martin Desruisseaux
* @version $Id: ZoomPane.java,v 1.14 2003/09/18 13:45:13 desruisseaux Exp $
*/
private final class Synchronizer implements ChangeListener, ZoomChangeListener {
/** |
* <code>ZoomPane</code> object.
*
* @author Martin Desruisseaux
* @version $Id: ZoomPane.java,v 1.15 2004/02/16 07:00:04 aaime Exp $
*/
private final class Synchronizer implements ChangeListener, ZoomChangeListener {
/** |
static void log(final String className, final String methodName, final Rectangle2D area) { final Double[] areaBounds; if (area != null) { areaBounds = new Double[] { |
static void log(final String className,
final String methodName,
final Rectangle2D area) {
if(LOGGER.isLoggable(Level.FINER)) {
final Double[] areaBounds;
if (area != null) {
areaBounds = new Double[] { |
areaBounds);
record.setSourceClassName (className);
record.setSourceMethodName(methodName);
Logger.getLogger("org.geotools.gui.swing").log(record);
}
/**
* Checks whether the rectangle <code>rect</code> is valid. The rectangle |
areaBounds); record.setSourceClassName (className); record.setSourceMethodName(methodName); LOGGER.log(record); } } /** * Checks whether the rectangle <code>rect</code> is valid. The rectangle |