}
@Override
public Component getPreview ( WebLookAndFeelDemo owner )
{
final WebProgressOverlay progressOverlay1 = new WebProgressOverlay ();
progressOverlay1.setProgressColor ( Color.WHITE );
progressOverlay1.setConsumeEvents ( false );
WebDecoratedImage ava1 = new WebDecoratedImage ( getIcon ( "ava1.jpg" ) );
ava1.setDrawGlassLayer ( false, false );
ava1.setZoomBlur ( true, false );
ava1.setBlurAlignX ( 0.4f, false );
ava1.setBlurAlignY ( 0.6f, false );
ava1.setZoomBlurFactor ( 0.5f, false );
ava1.setRound ( 10, false );
ava1.setShadeWidth ( 5 );
ava1.addMouseListener ( new MouseAdapter ()
{
@Override
public void mousePressed ( MouseEvent e )
{
progressOverlay1.setShowLoad ( !progressOverlay1.isShowLoad () );
}
} );
progressOverlay1.setComponent ( ava1 );
final WebProgressOverlay progressOverlay2 = new WebProgressOverlay ();
progressOverlay2.setProgressColor ( Color.RED );
progressOverlay2.setConsumeEvents ( false );
WebDecoratedImage ava2 = new WebDecoratedImage ( getIcon ( "ava2.jpg" ) );
ava2.setRound ( 0, false );
ava2.setShadeWidth ( 5 );
ava2.addMouseListener ( new MouseAdapter ()
{
@Override
public void mousePressed ( MouseEvent e )
{
progressOverlay2.setShowLoad ( !progressOverlay2.isShowLoad () );
}
} );
progressOverlay2.setComponent ( ava2 );
final WebProgressOverlay progressOverlay3 = new WebProgressOverlay ();
progressOverlay3.setProgressColor ( Color.WHITE );
progressOverlay3.setConsumeEvents ( false );
WebDecoratedImage ava3 = new WebDecoratedImage ( getIcon ( "ava3.png" ) );
ava3.setRound ( 10, false );
ava3.setShadeWidth ( 5 );
ava3.addMouseListener ( new MouseAdapter ()
{
@Override
public void mousePressed ( MouseEvent e )
{
progressOverlay3.setShowLoad ( !progressOverlay3.isShowLoad () );
}
} );
progressOverlay3.setComponent ( ava3 );
final WebProgressOverlay progressOverlay4 = new WebProgressOverlay ();
progressOverlay4.setProgressColor ( Color.BLACK );
progressOverlay4.setConsumeEvents ( false );
WebDecoratedImage ava4 = new WebDecoratedImage ( getIcon ( "ava4.jpg" ) );
ava4.setRound ( 0, false );
ava4.setShadeWidth ( 5 );
ava4.addMouseListener ( new MouseAdapter ()
{
@Override
public void mousePressed ( MouseEvent e )
{
progressOverlay4.setShowLoad ( !progressOverlay4.isShowLoad () );
}
} );
progressOverlay4.setComponent ( ava4 );
return new GroupPanel ( progressOverlay1, progressOverlay2, progressOverlay3, progressOverlay4 );
}