public void setTitle ( String title , String textcolor ) { this . title = title ; if ( titlecss == null ) { titlecss = new CSSClass ( this , "text" ) ; titlecss . setStatement ( SVGConstants . CSS_TEXT_ANCHOR_PROPERTY , SVGConstants . CSS_MIDDLE_VALUE ) ; titlecss . setStatement ( SVGConstants . CSS_FILL_PROPERTY , textcolor ) ; titlecss . setStatement ( SVGConstants . CSS_FONT_SIZE_PROPERTY , .6 * h ) ; } }
Set the button title