Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.tools.impl
Class ArtifactCollapseEditPartTracker

java.lang.Object
  extended by DragEditPartsTrackerEx
      extended by com.ibm.etools.systems.application.visual.editor.tools.impl.ArtifactCollapseEditPartTracker

public class ArtifactCollapseEditPartTracker
extends DragEditPartsTrackerEx

DragTracker that checks collapse/expand request.


Field Summary
static String copyright
           
 
Constructor Summary
ArtifactCollapseEditPartTracker(SystemNodeEditPart owner)
           
 
Method Summary
protected  void autoLayoutDiagram()
          Auto lay out the diagram.
protected  ApplicationModelEditPart getDiagramEditPart()
          Helper to return diagram editpart.
protected  boolean handleButtonDown(int button)
          Performs a conditional selection if needed (if right or left mouse button have been pressed) and goes into the drag state.
 boolean isCollapsableRequest()
          Check if the current request is for changing collapsed state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

ArtifactCollapseEditPartTracker

public ArtifactCollapseEditPartTracker(SystemNodeEditPart owner)
Method Detail

isCollapsableRequest

public boolean isCollapsableRequest()
Check if the current request is for changing collapsed state.

Returns:
true if it a change collapsed state request, false otherwise.

handleButtonDown

protected boolean handleButtonDown(int button)
Performs a conditional selection if needed (if right or left mouse button have been pressed) and goes into the drag state. If any other button has been pressed, the tool goes into the invalid state.

See Also:
org.eclipse.gef.tools.AbstractTool#handleButtonDown(int)

autoLayoutDiagram

protected void autoLayoutDiagram()
Auto lay out the diagram.


getDiagramEditPart

protected ApplicationModelEditPart getDiagramEditPart()
Helper to return diagram editpart.


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.