public class IlvEditSDMLabelInteractor extends IlvEditLabelInteractor
IlvEditSDMLabelInteractor lets the user
edit the label of a node created by an SDM engine.
By default, this interactor sets the label
property of the underlying data object. You can specify another property
by calling the setLabelProperty(java.lang.String) method of the interactor.
| Constructor and Description |
|---|
IlvEditSDMLabelInteractor()
Creates a new interactor that edits the labels
of the nodes created by an SDM engine.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(IlvGraphic obj)
Returns
true if the graphic object or the object that
it encapsulates implements IlvLabelInterface. |
protected void |
attach(IlvManagerView v)
This method is called when the interactor
is attached to the specified manager view.
|
protected void |
detach()
This method is called when the interactor
is detached from the specified manager view.
|
String |
getBtdProperty()
Gets the name of the property used to set the
base text direction of a data object.
|
protected IlvRect |
getLabelBBox(IlvGraphic obj,
IlvTransformer t)
Returns the bounding rectangle of the label of the graphic object or the object that
it encapsulates.
|
String |
getLabelProperty()
Gets the name of the property used to set the
label of a data object.
|
protected String |
getObjectLabel(IlvGraphic obj)
Returns the label of the graphic object or the object that
it encapsulates.
|
void |
setBtdProperty(String btdProperty)
Changes the name of the property used to set the
base text direction of a data object.
|
void |
setLabelProperty(String labelProperty)
Changes the name of the property used to set the
label of a data object.
|
protected void |
setObjectLabel(IlvGraphic graphic,
String label)
This method changes the label of the object directly
in the SDM data model.
|
protected boolean |
supportMultiline(IlvGraphic obj)
Returns
true if the graphic object or the object that
it encapsulates implements IlvLabelInterface, and
supports multiline labels. |
addObject, createEditComponent, editObject, ensureEditAreaInView, getEditingAreaBBox, getEditionFont, getFont, getForeground, getObjectFactory, isCreationAllowed, isCreationInSubManagersAllowed, isEditionAllowed, isGrapherMode, isPermanent, makeObject, processMouseEvent, setCreationAllowed, setCreationInSubManagersAllowed, setEditionAllowed, setFont, setForeground, setGrapherMode, setObjectFactory, setPermanentaddFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, isXORGhost, processEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhostpublic IlvEditSDMLabelInteractor()
public void setLabelProperty(String labelProperty)
label.labelProperty - The name of the property used to set
an object label.public String getLabelProperty()
setLabelProperty(java.lang.String)public void setBtdProperty(String btdProperty)
baseTextDirection.btdProperty - The name of the property used to set
an object base text direction.public String getBtdProperty()
setBtdProperty(java.lang.String)protected boolean accept(IlvGraphic obj)
true if the graphic object or the object that
it encapsulates implements IlvLabelInterface.accept in class IlvEditLabelInteractorobj - The graphic object.protected String getObjectLabel(IlvGraphic obj)
getObjectLabel in class IlvEditLabelInteractorobj - The graphic object.protected boolean supportMultiline(IlvGraphic obj)
true if the graphic object or the object that
it encapsulates implements IlvLabelInterface, and
supports multiline labels.supportMultiline in class IlvEditLabelInteractorobj - The graphic object.protected IlvRect getLabelBBox(IlvGraphic obj, IlvTransformer t)
getLabelBBox in class IlvEditLabelInteractorobj - The graphic object.t - The transformer used to compute the bounding rectangle.IlvEditLabelInteractor.editObject(IlvGraphic, IlvPoint),
IlvEditLabelInteractor.getEditingAreaBBox(IlvGraphic, IlvPoint, int, int, int, int, IlvTransformer)protected void setObjectLabel(IlvGraphic graphic, String label)
setObjectLabel in class IlvEditLabelInteractorgraphic - The graphic object whose label is being edited.label - The new label.protected void attach(IlvManagerView v)
attach in class IlvEditLabelInteractorv - The manager view.IlvManagerViewInteractor.detach()protected void detach()
detach in class IlvEditLabelInteractorIlvManagerViewInteractor.attach(ilog.views.IlvManagerView)© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.