Clean code.

This commit is contained in:
Holt59
2018-03-06 10:30:43 +01:00
parent 825108d10e
commit e5d1b30cfd
3 changed files with 27 additions and 15 deletions

View File

@@ -319,6 +319,7 @@ public class BasicDrawing extends JPanel implements Drawing {
*
*/
public BasicDrawing() {
setLayout(null);
this.zoomAndPanListener = new ZoomAndPanListener(this,
ZoomAndPanListener.DEFAULT_MIN_ZOOM_LEVEL, 20, 1.2);
@@ -421,6 +422,13 @@ public class BasicDrawing extends JPanel implements Drawing {
this.repaint();
}
/**
* @return The current ZoomAndPanListener associated with this drawing.
*/
public ZoomAndPanListener getZoomAndPanListener() {
return this.zoomAndPanListener;
}
/**
* @param lon
* @return