/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2006-2008 Sun Microsystems, Inc.
*/
/**
* This class is the panel that is displayed in the QuickSetupDialog. It
* contains 3 panels that are passed in the constructor: the steps panel,
* the buttons panel and the current step panel (the main panel of the three).
*
* The only remarkable thing of this class is that is responsible for
* implementing the background. The three subpanels are transparent and
* this class sets a background (with the Open DS logo) and uses some basic
* transparency effects.
*
*/
{
private int buttonsPanelVerticalInsets;
private int stepsPanelHorizontalInsets;
/**
* The constructor of the FramePanel.
* @param stepsPanel the steps panel that on the top-left side of the
* QuickSetupDialog.
* @param currentStepPanel the current step panel (the panel that displays
* what is associated to the current step). Is the panel that contains all
* the input fields and is located on the top-right side of the
* QuickSetupDialog.
* @param buttonsPanel the buttons panel that appears on the bottom of the
* QuickSetupDialog.
*/
{
super(new GridBagLayout());
currentPanelContainer.setOpaque(false);
int backGroundIconWidth = 0;
int backGroundIconHeight = 0;
if (backgroundIcon != null)
{
}
this.buttonsPanel = buttonsPanel;
this.stepsPanel = stepsPanel;
int width =
int height =
}
/**
* {@inheritDoc}
*
* This method has been overwritten to be able to have a transparency effect
* with the OpenDS logo background.
*/
{
// paint background
height);
if (backgroundIcon != null)
{
// Draw the icon over and over, right aligned.
// Copy the Graphics object, which is actually
// a Graphics2D object. Cast it so we can
// set alpha composite.
}
}
}