+ setBoxPositionOnly();
+ }
+
+ /**
+ * Removes this object as a property change listener, and nulls references
+ */
+ protected void dispose()
+ {
+ try
+ {
+ if (av != null)
+ {
+ av.getRanges().removePropertyChangeListener(this);
+ }
+
+ oviewCanvas.dispose();
+
+ /*
+ * close the parent frame (which also removes it from the
+ * Desktop Windows menu)
+ */
+ ((JInternalFrame) SwingUtilities
+ .getAncestorOfClass(JInternalFrame.class, (this)))
+ .setClosed(true);
+ } catch (PropertyVetoException e)
+ {
+ // ignore
+ } finally
+ {
+ progressPanel = null;
+ av = null;
+ oviewCanvas = null;
+ ap = null;
+ od = null;
+ internalFrame = null;
+ }
+ }
+
+ public boolean isShowHiddenRegions()
+ {
+ return showHidden;
+ }
+
+ public OverviewCanvas getCanvas()
+ {
+ return oviewCanvas;
+ }
+
+ /**
+ * Sets the title of the enclosing frame
+ *
+ * @param title
+ */
+ public void setTitle(String title)
+ {
+ internalFrame.setTitle(title);
+ }
+
+ /**
+ * Returns the title of the enclosing frame
+ *
+ * @return title
+ */
+ public String getTitle()
+ {
+ return internalFrame.getTitle();
+ }
+
+ /**
+ * Sets the bounds of the frame holding the Overview panel
+ *
+ * @param xpos
+ * @param ypos
+ * @param width
+ * @param height
+ */
+ public void setFrameBounds(int xpos, int ypos, int width, int height)
+ {
+ internalFrame.setBounds(xpos, ypos, width, height);
+ }
+
+ /**
+ * Returns the bounds of the enclosing frame
+ *
+ * @return
+ */
+ public Rectangle getFrameBounds()
+ {
+ return internalFrame.getBounds();
+ }
+
+ /**
+ * Closes the frame containing the overview panel
+ */
+ public void close()
+ {
+ internalFrame.dispose();