* the previous text.
*/
public void mouseClicked(MouseEvent e, Color c, Double point, int scaleX, int scaleY) {
chat.unselect();
if (e.getClickCount() >= 2) {
TextShape shape = chat.getClickedTextShape(point, scaleX, scaleY);
if (shape != null) {
board.setCurrentShape(shape);
startEditing(shape, scaleX, scaleY);
return;
}
}
if (board.getCurrentShape() == null) {
TextShape s = new TextShape(
chat.getMyJID(), board.getFontForegroundColor(),
board.getCurrentFont(), point);
startEditing(s, scaleX, scaleY);
} else {
// we look if it is clicked in out shape; if not, we have to finish editing the shape