|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.tools.DirectEditManager
org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager
| Constructor Summary | |
TextDirectEditManager(GraphicalEditPart source,
java.lang.Class editorType,
CellEditorLocator locator)
|
|
TextDirectEditManager(ITextAwareEditPart source)
constructor |
|
| Method Summary | |
protected void |
bringDown()
|
protected void |
commit()
|
protected ResourceManager |
getResourceManager()
Gets the resource manager to remember the resources allocated for this graphical viewer. |
protected Font |
getScaledFont(IFigure label)
Given a WrapLabel object, this will calculate the
correct Font needed to display into screen coordinates, taking into
account the current mapmode. |
static java.lang.Class |
getTextCellEditorClass(GraphicalEditPart source)
|
static CellEditorLocator |
getTextCellEditorLocator(ITextAwareEditPart source)
|
protected void |
initCellEditor()
|
protected void |
setCellEditor(CellEditor editor)
|
void |
setEditText(java.lang.String toEdit)
This method is used to set the cell editors text |
void |
setLocator(CellEditorLocator locator)
|
void |
show()
|
void |
show(char initialChar)
Performs show and sets the edit string to be the initial character or string |
void |
show(Point location)
Performs show and sends an extra mouse click to the point location so that cursor appears at the mouse click point The Text control does not allow for the cursor to appear at point location but at a character location |
void |
showFeedback()
|
protected void |
unhookListeners()
|
| Methods inherited from class org.eclipse.gef.tools.DirectEditManager |
createCellEditorOn, createDirectEditRequest, eraseFeedback, getCellEditor, getDirectEditFeature, getDirectEditRequest, getEditPart, isDirty, setDirty, setEditPart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextDirectEditManager(ITextAwareEditPart source)
source - GraphicalEditPart to support direct edit of. The figure of
the source edit part must be of type WrapLabel.
public TextDirectEditManager(GraphicalEditPart source,
java.lang.Class editorType,
CellEditorLocator locator)
source - editorType - locator - | Method Detail |
public static CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source)
source - the ITextAwareEditPart to determine the cell editor for
CellEditorLocator that is appropriate for the source EditPartpublic static java.lang.Class getTextCellEditorClass(GraphicalEditPart source)
source - the GraphicalEditPart that is used to determine which
CellEditor class to use.
Class of the CellEditor to use for the text editing.protected Font getScaledFont(IFigure label)
WrapLabel object, this will calculate the
correct Font needed to display into screen coordinates, taking into
account the current mapmode. This will typically be used by direct
edit cell editors that need to display independent of the zoom or any
coordinate mapping that is taking place on the drawing surface.
label - the WrapLabel to use for the font calculation
Font that is scaled to the screen coordinates.
Note: the returned Font should not be disposed since it is
cached by a common resource manager.protected void initCellEditor()
protected void commit()
DirectEditManager.commit()protected void bringDown()
DirectEditManager.bringDown()public void setEditText(java.lang.String toEdit)
toEdit - String to be set in the cell editorpublic void show(char initialChar)
initialChar - public void show()
public void show(Point location)
location - protected void unhookListeners()
protected void setCellEditor(CellEditor editor)
public void showFeedback()
protected ResourceManager getResourceManager()
public void setLocator(CellEditorLocator locator)
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.