Package com.alee.extended.label

Examples of com.alee.extended.label.WebVerticalLabel


                panel.add ( new WebLabel ( "South panel", WebLabel.CENTER ) );
                break;
            }
            case WEST:
            {
                panel.add ( new WebVerticalLabel ( "West panel", WebLabel.CENTER, false ) );
                break;
            }
            case EAST:
            {
                panel.add ( new WebVerticalLabel ( "East panel", WebLabel.CENTER, true ) );
                break;
            }
            case CENTER:
            {
                panel.add ( new WebLabel ( "Center panel", WebLabel.CENTER ) );
View Full Code Here


    @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 );
    }
View Full Code Here

    {
        // todo RTL orientation support
        final WebLabel defaultTitle;
        if ( titlePanePostion == LEFT )
        {
            defaultTitle = new WebVerticalLabel ( title, icon, WebLabel.LEADING, false );
        }
        else if ( titlePanePostion == RIGHT )
        {
            defaultTitle = new WebVerticalLabel ( title, icon, WebLabel.LEADING, true );
        }
        else
        {
            defaultTitle = new WebLabel ( title, icon, WebLabel.LEADING );
        }
View Full Code Here

TOP

Related Classes of com.alee.extended.label.WebVerticalLabel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.