@Override
public Component getPreview ( WebLookAndFeelDemo owner )
{
// Counter-clockwise vertical label
WebVerticalLabel vl = new WebVerticalLabel ( "Counter-clockwise", loadIcon ( "icon.png" ), WebVerticalLabel.CENTER );
vl.setClockwise ( false );
vl.setHorizontalTextPosition ( WebVerticalLabel.RIGHT );
// Clockwise vertical label
WebVerticalLabel dvl = new WebVerticalLabel ( "Clockwise", loadIcon ( "icon.png" ), WebVerticalLabel.CENTER );
dvl.setClockwise ( true );
dvl.setHorizontalTextPosition ( WebVerticalLabel.RIGHT );
// Shaded verical label
WebVerticalLabel svl = new WebVerticalLabel ( "Shaded label", WebVerticalLabel.CENTER );
svl.setClockwise ( false );
svl.setDrawShade ( true );
// Vertical label with HTML content
WebVerticalLabel hvl =
new WebVerticalLabel ( "<html><center>Some <b>HTML</b> label<br>with two lines</center></html>", JLabel.CENTER );
hvl.setClockwise ( false );
return new GroupPanel ( 8, vl, dvl, svl, hvl );
}