- return if @style is style
- if style is STYLE_NORMAL
- @el.setAttribute 'style', 'filter: url(#crayon)'
- else
- if @style is STYLE_NORMAL
- @el.setAttribute 'style', ''
- switch style
- when STYLE_NORMAL
- @el.setAttribute 'class', "#{@css_class}"
- when STYLE_SELECTED
- @el.setAttribute 'class', "#{@css_class} selected"
- when STYLE_HOVER
- @el.setAttribute 'class', "#{@css_class} hover"
- when STYLE_DRAGGING
- @el.setAttribute 'class', "#{@css_class} dragging"
- # FIXME when STYLE_EDITING