 import mx.styles.StyleManager;
 import mx.styles.StyleProtoChain;
 import mx.utils.NameUtil;
+
+import spark.components.Group;
 
 /**
  *  The base class for GraphicElements such as TextBox and TextGraphic

    /**
     *  @private
     */
    override protected function measure():void
    {
        super.measure();
        
        // The measure() method of a GraphicElement can get called
        // when its style chain hasn't been initialized.
        // In that case, composeTextLines() must not be called.
        if (!mx_internal::styleChainInitialized)
            return;

        composeTextLines(explicitWidth, explicitHeight);

        // If width/height not explicitly set, put on next pixel boundary for 
        // crisp edges.  This should not impact isOverset which was calculated
        // with the pre-adjusted bounds values.  If explcitly set, use it so
        // that a recomposition can possibily be avoided in updateDisplayList().
        if (mx_internal::bounds.width != explicitWidth)
            mx_internal::bounds.width = Math.ceil(mx_internal::bounds.width);

        measuredWidth = mx_internal::bounds.width;         
        
        if (mx_internal::bounds.height != explicitHeight)
            mx_internal::bounds.height = Math.ceil(mx_internal::bounds.height);

        measuredHeight = mx_internal::bounds.height;  
        
        //trace("measure", measuredWidth, measuredHeight);
    }
            
    /**
     *  @private
     */

     */
    mx_internal var lineBreakToFit:Boolean = true;

    /**
     *  @private
     *  Cache the width constraint as set by the layout in setLayoutBoundsSize()
     *  so that text reflow can be calculated during a subsequent measure pass.
     */
    private var _widthConstraint:Number = NaN;
    
    /**
     *  @private
     *  Cache the number of text lines during measure. We can optimize for
     *  a single line text reflow, which is a lot of cases.
     */
    private var _measuredTextLineCount:int;

    //--------------------------------------------------------------------------
    //
    //  Overridden properties: GraphicElement
