Package viewer.legends

Examples of viewer.legends.CategoryLabel


        int       rowID_final   = summarizable.getFinalRowID();
        Object    clicked_obj   = summarizable.getClickedObject();
        String    type_name     = " Summary " + topo + " ";

        Border        border     = null;
        CategoryLabel label_type = null;
        if ( clicked_obj instanceof CategoryTimeBox ) {
            CategoryWeightF  twgf;
            twgf       = ( (CategoryTimeBox) clicked_obj ).getCategoryWeightF();
            label_type = new CategoryLabel( twgf.getCategory() );
            border     = BorderFactory.createTitledBorder(
                                       Normal_Border, type_name,
                                       TitledBorder.LEFT, TitledBorder.TOP,
                                       Const.FONT, Color.magenta );
        }
        else // if ( clicked_obj instanceof TimeAveBox )
            label_type = new CategoryLabel( type_name, topo,
                                            SummaryState.ForeColor );
            border     = Normal_Border;
        }

        // Set the CategoryLabel Icon
View Full Code Here


        drawable   = dobj;

        // Set the CategoryLabel Icon
        Dimension     panel_max_size;
        Category      type       = null;
        CategoryLabel label_type = null;
        JPanel        top_panel  = new JPanel();
        top_panel.setLayout( new BoxLayout( top_panel, BoxLayout.X_AXIS ) );
        if (    drawable instanceof Shadow
             && ( (Shadow) drawable ).getSelectedSubCategory() != null ) {
            type       = ( (Shadow) drawable ).getSelectedSubCategory();
            label_type = new CategoryLabel( type );
            ( (Shadow) drawable ).clearSelectedSubCategory();
            top_panel.setBorder( Shadow_Border );
        }
        else {
            type       = drawable.getCategory();
            label_type = new CategoryLabel( type );
            top_panel.setBorder( Normal_Border );
        }
        top_panel.add( STRUT );
        top_panel.add( label_type );
        top_panel.add( GLUE );
View Full Code Here

TOP

Related Classes of viewer.legends.CategoryLabel

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.