JHotDraw 6.0b1

org.jhotdraw.contrib.html
Class HTMLTextAreaTool

java.lang.Object
  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:
Tool

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
TextAreaTool.UndoActivity
 
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractTool
AbstractTool.EventDispatcher
 
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

HTMLTextAreaTool

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

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

getFont

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

Overrides:
getFont in class TextAreaTool
Parameters:
figure - the figure
Returns:
The font

JHotDraw 6.0b1