|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.AbstractConnectionEditPart
vocleditor.edit.VOCLAssociationRoleEditPart
public class VOCLAssociationRoleEditPart
EditPart for an AssociationRole.
Field Summary | |
---|---|
boolean |
isMoving
|
int |
lastAnchorAt
This is variable is for a pretty much dirty hack. |
Fields inherited from interface org.eclipse.gef.EditPart |
---|
SELECTED, SELECTED_NONE, SELECTED_PRIMARY |
Fields inherited from interface org.eclipse.gef.LayerConstants |
---|
CONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYER |
Fields inherited from interface org.eclipse.gef.RequestConstants |
---|
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER |
Constructor Summary | |
---|---|
VOCLAssociationRoleEditPart(VOCLModel.AssociationRole associationrole)
Constructs a new VOCLAssociationRoleEditPart for the given AssociationRole |
Method Summary | |
---|---|
void |
activate()
starts listening for model changes |
void |
deactivate()
stops listening for model changes |
java.lang.Object |
getAdapter(java.lang.Class key)
returns a property source for thr model object |
VOCLBendpoint |
getBendpointAt(int index)
Retrieves the bendpoint at index |
void |
insertBendpoint(int index,
VOCLBendpoint point)
Inserts a bendpoint |
void |
performRequest(org.eclipse.gef.Request request)
Opens the properties dialog and creates and executes an EditAssociationRoleCommand if necessary |
void |
removeBendpointAt(int index)
removes a bendpoint |
void |
setBendpoint(int index,
VOCLBendpoint point)
Moves a bendpoint to a new location |
void |
setLayerEditPart(NavExpEditPart part)
Set the NavExpEditPart the knows the ConnectionLayer for our ConnectionFigure |
void |
setSelected(boolean selectmode)
Set's selection mode of the Association for highlighting |
Methods inherited from class org.eclipse.gef.editparts.AbstractConnectionEditPart |
---|
addNotify, getConnectionFigure, getDragTracker, getSource, getTarget, refresh, removeNotify, setParent, setSource, setTarget |
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
---|
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint |
Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart |
---|
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, removeEditPartListener, removeEditPolicy, setFocus, setModel, setSelected, showSourceFeedback, showTargetFeedback, toString, understandsRequest |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gef.GraphicalEditPart |
---|
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint |
Methods inherited from interface org.eclipse.gef.EditPart |
---|
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, removeEditPartListener, removeEditPolicy, setFocus, setModel, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
Field Detail |
---|
public int lastAnchorAt
public boolean isMoving
this variable is reset by VOCLAssociationRoleEditPart.execute
Constructor Detail |
---|
public VOCLAssociationRoleEditPart(VOCLModel.AssociationRole associationrole)
associationrole
- an AssociationRole model elementMethod Detail |
---|
public void activate()
activate
in interface org.eclipse.gef.EditPart
activate
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
EditPart.activate()
public void deactivate()
deactivate
in interface org.eclipse.gef.EditPart
deactivate
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
EditPart.deactivate()
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.gef.editparts.AbstractConnectionEditPart
IAdaptable.getAdapter(java.lang.Class)
public void insertBendpoint(int index, VOCLBendpoint point)
index
- Index of the new bendpointpoint
- the bendpoint to insertpublic void removeBendpointAt(int index)
index
- the index of the bendpoint to removepublic void setBendpoint(int index, VOCLBendpoint point)
index
- Index of the bendpoint to movepoint
- new value for the moved pointpublic VOCLBendpoint getBendpointAt(int index)
index
- The index of the bendpoint to retrieve
public void setSelected(boolean selectmode)
selectmode
- true == selected, false == not selectedpublic void setLayerEditPart(NavExpEditPart part)
part
- a NavExpEditPart that knows the ConnectionLayer for our ConnectionFigurepublic void performRequest(org.eclipse.gef.Request request)
EditAssociationRoleCommand
if necessary
performRequest
in interface org.eclipse.gef.EditPart
performRequest
in class org.eclipse.gef.editparts.AbstractEditPart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |