|
||||||||||
| 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.internal.ui.rulers.RulerEditPart
| Nested Class Summary | |
static class |
RulerEditPart.RulerSelectionPolicy
|
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractEditPart |
AbstractEditPart.EditPolicyIterator |
| Field Summary | |
protected GraphicalViewer |
diagramViewer
|
| Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
figure, sourceConnections, targetConnections |
| Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart |
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG |
| Fields inherited from interface org.eclipse.gef.EditPart |
SELECTED, SELECTED_NONE, SELECTED_PRIMARY |
| 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 | |
RulerEditPart(java.lang.Object model)
|
|
| Method Summary | |
void |
activate()
Extends AbstractEditPart#activate() to also activate all source
ConnectionEditParts. |
protected void |
createEditPolicies()
Creates the initial EditPolicies and/or reserves slots for dynamic ones. |
protected org.eclipse.draw2d.IFigure |
createFigure()
Creates the Figure to be used as this part's visuals. |
void |
deactivate()
Extends AbstractEditPart#deactivate() to
also deactivate the source ConnectionEditParts. |
protected AccessibleEditPart |
getAccessibleEditPart()
Returns the AccessibleEditPart adapter for this EditPart. |
protected GraphicalViewer |
getDiagramViewer()
Returns the GraphicalViewer associated with the diagram. |
DragTracker |
getDragTracker(Request request)
Overridden to return a default DragTracker for GraphicalEditParts. |
org.eclipse.draw2d.IFigure |
getGuideLayer()
|
protected java.util.List |
getModelChildren()
Returns a List containing the children
model objects. |
protected RulerFigure |
getRulerFigure()
|
RulerProvider |
getRulerProvider()
|
EditPart |
getTargetEditPart(Request request)
Return the EditPart that should be used as the target for the
specified Request. |
ZoomManager |
getZoomManager()
|
void |
handleGuideReparented(java.lang.Object guide)
|
void |
handleUnitsChanged(int newUnit)
|
boolean |
isHorizontal()
|
void |
setParent(EditPart parent)
Sets the parent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.EditPart |
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
| Field Detail |
protected GraphicalViewer diagramViewer
| Constructor Detail |
public RulerEditPart(java.lang.Object model)
| Method Detail |
public void activate()
AbstractGraphicalEditPartAbstractEditPart.activate() to also activate all source
ConnectionEditParts.
activate in interface EditPartactivate in class AbstractGraphicalEditPartEditPart.activate()protected void createEditPolicies()
AbstractEditPartnull can be used to reserve a "slot", should there be some desire to
guarantee the ordering of EditPolcies.
createEditPolicies in class AbstractEditPartEditPart.installEditPolicy(Object, EditPolicy)protected org.eclipse.draw2d.IFigure createFigure()
AbstractGraphicalEditPartFigure to be used as this part's visuals. This is
called from AbstractGraphicalEditPart.getFigure() if the figure has not been created.
createFigure in class AbstractGraphicalEditPartpublic void deactivate()
AbstractGraphicalEditPartAbstractEditPart.deactivate() to
also deactivate the source ConnectionEditParts. Subclasses should extend this
method to remove any listeners added in AbstractGraphicalEditPart.activate().
deactivate in interface EditPartdeactivate in class AbstractGraphicalEditPartEditPart.deactivate()protected AccessibleEditPart getAccessibleEditPart()
AbstractEditPartAccessibleEditPart adapter for this EditPart. The same
adapter instance must be used throughout the editpart's existance. Each adapter has
a unique ID which is registered during AbstractEditPart.register(). Accessibility clients
can only refer to this editpart via that ID.
getAccessibleEditPart in class AbstractEditPartnull or an AccessibleEditPart adapterprotected GraphicalViewer getDiagramViewer()
public DragTracker getDragTracker(Request request)
AbstractGraphicalEditPartDragTracker for GraphicalEditParts.
getDragTracker in interface EditPartgetDragTracker in class AbstractGraphicalEditPartEditPart.getDragTracker(Request)public org.eclipse.draw2d.IFigure getGuideLayer()
protected java.util.List getModelChildren()
AbstractEditPartList containing the children
model objects. If this EditPart's model is a container, this method should be
overridden to returns its children. This is what causes children EditParts to be
created.
Callers must not modify the returned List. Must not return null.
getModelChildren in class AbstractEditPartprotected RulerFigure getRulerFigure()
public RulerProvider getRulerProvider()
public EditPart getTargetEditPart(Request request)
EditPartEditPart that should be used as the target for the
specified Request. Tools will generally call this method with the mouse
location so that the receiver can implement drop targeting. Typically, if this EditPart
is not the requested target (for example, this EditPart is not a composite), it will
forward the call to its parent.
getTargetEditPart in interface EditPartgetTargetEditPart in class AbstractEditPartrequest - Describes the type of target desired.
null or the target EditPartEditPart.getTargetEditPart(Request),
EditPolicy.getTargetEditPart(Request)public ZoomManager getZoomManager()
public void handleGuideReparented(java.lang.Object guide)
public void handleUnitsChanged(int newUnit)
public boolean isHorizontal()
public void setParent(EditPart parent)
EditPart
Sets the parent. This should only be called by the
parent EditPart.
setParent in interface EditPartsetParent in class AbstractEditPartEditPart.setParent(EditPart)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||