org.eclipse.graphiti.pattern
Class LayoutFeatureForPattern

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.features.impl.AbstractLayoutFeature
          extended by org.eclipse.graphiti.pattern.LayoutFeatureForPattern
All Implemented Interfaces:
IFeature, IFeatureProviderHolder, ILayoutFeature, ILayout, IDescription, IName

public class LayoutFeatureForPattern
extends AbstractLayoutFeature

The Class LayoutFeatureForPattern.


Field Summary
private  IFeatureForPattern delegate
           
 
Constructor Summary
LayoutFeatureForPattern(IFeatureProvider featureProvider, IPattern pattern)
          Creates a new LayoutFeatureForPattern.
 
Method Summary
 boolean canLayout(ILayoutContext context)
          Checks whether the current pictogram element of the given context can be layouted.
 boolean layout(ILayoutContext context)
          Layoutes the pictogram element.
 
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractLayoutFeature
canExecute, canLayoutPictogramElement, execute, getName, resizeShape
 
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, setProgressCallback, toString, updatePictogramElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.graphiti.features.IFeature
canUndo, hasDoneChanges, isAvailable
 
Methods inherited from interface org.eclipse.graphiti.IDescription
getDescription
 
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
 

Field Detail

delegate

private IFeatureForPattern delegate
Constructor Detail

LayoutFeatureForPattern

public LayoutFeatureForPattern(IFeatureProvider featureProvider,
                               IPattern pattern)
Creates a new LayoutFeatureForPattern.

Parameters:
featureProvider - the feature provider
pattern - the pattern
Method Detail

canLayout

public boolean canLayout(ILayoutContext context)
Description copied from interface: ILayout
Checks whether the current pictogram element of the given context can be layouted.

Parameters:
context - the context
Returns:
true if update is possible

layout

public boolean layout(ILayoutContext context)
Description copied from interface: ILayout
Layoutes the pictogram element.

Parameters:
context - the context
Returns:
true, if update process was successfull


Copyright (c) SAP AG 2005, 2010.