Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.editparts.impl
Class ApplicationModelEditPart

java.lang.Object
  extended by DiagramEditPart
      extended by com.ibm.etools.systems.application.visual.editor.editparts.impl.ApplicationModelEditPart
All Implemented Interfaces:
IApplicationModelFilterChangeListener

public class ApplicationModelEditPart
extends DiagramEditPart
implements IApplicationModelFilterChangeListener

EditPart for ApplicationModel. ApplicationModel is the top element of Application Diagram model. ApplicationModelEditPart is used as Diagram editpart.


Field Summary
static String copyright
           
static String MODEL_ID
           
protected  int orientationType
           
 
Constructor Summary
ApplicationModelEditPart(View view)
          Create ApplicationModelEditPart from notation view model.
 
Method Summary
 void activate()
          Deactivate the editpart.
protected  void createDefaultEditPolicies()
          Install edit policies.
 void deactivate()
          Deactivate the editpart.
 void doAutoLayout()
          Do auto layout.
 void filterChanged(ApplicationModelFilterChangeEvent event)
          Handle application model filter changes.
 int getLayoutOrientation()
          Get layout orientation.
protected  List getModelChildren()
          Return this editpart's view (model) children.
protected  SystemGraphicalEditorSessionManager getSessionManager()
          Helper method to get SystemGraphicalEditorSessionManager.
 List getVisibleChildren()
          Return the list of visible children.
 void resetLayoutOrientation()
          Reset layout orientation.
 void setLayoutOrientation(int orientationType)
          Set layout orientation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

MODEL_ID

public static final String MODEL_ID
See Also:
Constant Field Values

orientationType

protected int orientationType
Constructor Detail

ApplicationModelEditPart

public ApplicationModelEditPart(View view)
Create ApplicationModelEditPart from notation view model.

Method Detail

createDefaultEditPolicies

protected void createDefaultEditPolicies()
Install edit policies.


activate

public void activate()
Deactivate the editpart.


deactivate

public void deactivate()
Deactivate the editpart.


setLayoutOrientation

public void setLayoutOrientation(int orientationType)
Set layout orientation. Current orientation is a transsition value. It should be reset everytime before invoking arrange all. If it is not reset, the preference value will be used.


resetLayoutOrientation

public void resetLayoutOrientation()
Reset layout orientation.


getLayoutOrientation

public int getLayoutOrientation()
Get layout orientation.


getSessionManager

protected SystemGraphicalEditorSessionManager getSessionManager()
Helper method to get SystemGraphicalEditorSessionManager.


filterChanged

public void filterChanged(ApplicationModelFilterChangeEvent event)
Description copied from interface: IApplicationModelFilterChangeListener
Handle application model filter changes.

Specified by:
filterChanged in interface IApplicationModelFilterChangeListener

doAutoLayout

public void doAutoLayout()
Do auto layout.


getVisibleChildren

public List getVisibleChildren()
Return the list of visible children.


getModelChildren

protected List getModelChildren()
Return this editpart's view (model) children.

Returns:
list of views.

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.