JHotDraw 6.0b1

Class HTMLTextAreaTool

  extended by org.jhotdraw.standard.AbstractTool
      extended by org.jhotdraw.standard.CreationTool
          extended by org.jhotdraw.contrib.TextAreaTool
              extended by org.jhotdraw.contrib.html.HTMLTextAreaTool
All Implemented Interfaces:

public class HTMLTextAreaTool
extends TextAreaTool

HTMLTextAreaTool creates or edits HTMLTextAreaFigures.
Only diffreence with TextAreaFigure is that this allows to edit HTML code using a more suitable font than the one defined by the figure.

Nested Class Summary
Nested classes/interfaces inherited from class org.jhotdraw.contrib.TextAreaTool
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractTool
Field Summary
Fields inherited from class org.jhotdraw.contrib.TextAreaTool
fEditedFigure, fTextField, fTypingTarget
Constructor Summary
HTMLTextAreaTool(DrawingEditor newDrawingEditor, Figure prototype)
          Constructor for the TextAreaTool object
Method Summary
protected  java.awt.Font getFont(TextHolder figure)
          Gets the font to be used for editing the figure.
Use a simple editing font, easier for HTML editing
Methods inherited from class org.jhotdraw.contrib.TextAreaTool
activate, beginEdit, createUndoActivity, deactivate, endEdit, getEditedFigure, getTypingTarget, isActivated, mouseDown, mouseDrag, mouseUp, setEditedFigure, setTypingTarget
Methods inherited from class org.jhotdraw.standard.CreationTool
createFigure, getAddedFigure, getAddedFigures, getCreatedFigure, getPrototypeFigure, setAddedFigure, setAddedFigures, setCreatedFigure, setPrototypeFigure
Methods inherited from class org.jhotdraw.standard.AbstractTool
addToolListener, checkUsable, createEventDispatcher, createViewChangeListener, drawing, editor, getActiveDrawing, getActiveView, getAnchorX, getAnchorY, getEventDispatcher, getUndoActivity, isActive, isEnabled, isUsable, keyDown, mouseMove, removeToolListener, setAnchorX, setAnchorY, setEditor, setEnabled, setUndoActivity, setUsable, setView, view, viewCreated, viewDestroying, viewSelectionChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public HTMLTextAreaTool(DrawingEditor newDrawingEditor,
                        Figure prototype)
Constructor for the TextAreaTool object

newDrawingEditor - the managing drawing editor
prototype - the prototype for the figure
Method Detail


protected java.awt.Font getFont(TextHolder figure)
Gets the font to be used for editing the figure.
Use a simple editing font, easier for HTML editing

getFont in class TextAreaTool
figure - the figure
The font

JHotDraw 6.0b1