question: public Style addStyle ( String nm , Style parent ) { StyleContext styles = ( StyleContext ) getAttributeContext ( ) ; return styles . addStyle ( nm , parent ) ; }
target:  Adds a new style into the logical style hierarchy.  Style attributes resolve from bottom up so an attribute specified in a child will override an attribute specified in the parent.