public void editText(VisualItem item,String attribute,Rectangle r){
  if (m_editing) {
    stopEditing();
  }
  String txt=item.getString(attribute);
  m_editItem=item;
  m_editAttribute=attribute;
  Color tc=ColorLib.getColor(item.getTextColor());
  Color fc=ColorLib.getColor(item.getFillColor());
  m_editor.setForeground(tc);
  m_editor.setBackground(fc);
  editText(txt,r);
}

public void editText ( VisualItem item , String attribute , Rectangle r ) { if ( m_editing ) { stopEditing ( ) ; } String txt = item . getString ( attribute ) ; m_editItem = item ; m_editAttribute = attribute ; Color tc = ColorLib . getColor ( item . getTextColor ( ) ) ; Color fc = ColorLib . getColor ( item . getFillColor ( ) ) ; m_editor . setForeground ( tc ) ; m_editor . setBackground ( fc ) ; editText ( txt , r ) ; }
edit text for the given visualitem and field . presents a text editing widget spaning the given bounding box . use stopediting ( ) to hide the text widget . when stopediting ( ) is called , the field will automatically be updated with the visualitem .
