}
/**
- * Overridden to set the bounds of the frame holding the Overview panel
+ * Sets the bounds of the frame holding the Overview panel
*
* @param xpos
* @param ypos
* @param width
* @param height
*/
- @Override
- public void setBounds(int xpos, int ypos, int width, int height)
+ public void setFrameBounds(int xpos, int ypos, int width, int height)
{
internalFrame.setBounds(xpos, ypos, width, height);
}
/**
- * Overridden to return the bounds of the enclosing frame
+ * Returns the bounds of the enclosing frame
*
* @return
*/
- @Override
- public Rectangle getBounds()
+ public Rectangle getFrameBounds()
{
return internalFrame.getBounds();
}
{
Overview overview = new Overview();
overview.setTitle(ov.getTitle());
- Rectangle bounds = ov.getBounds();
+ Rectangle bounds = ov.getFrameBounds();
overview.setXpos(bounds.x);
overview.setYpos(bounds.y);
overview.setWidth(bounds.width);
OverviewPanel overviewPanel = af
.openOverviewPanel(overview.isShowHidden());
overviewPanel.setTitle(overview.getTitle());
- overviewPanel.setBounds(overview.getXpos(), overview.getYpos(),
+ overviewPanel.setFrameBounds(overview.getXpos(), overview.getYpos(),
overview.getWidth(), overview.getHeight());
Color gap = new Color(overview.getGapColour());
Color residue = new Color(overview.getResidueColour());